@@ -28,24 +28,24 @@ interface SessionStorageInterface
28
28
* Do not start session on demand and throw exception if attempt
29
29
* is make to read or write bag data.
30
30
*/
31
- const NO_START_ON_DEMAND_STRICT = 0 ;
31
+ const NO_START_ON_DEMAND_STRICT = ' off ' ;
32
32
33
33
/**
34
34
* Start the session on demand when accessing bag data.
35
35
*/
36
- const START_ON_DEMAND = 1 ;
36
+ const START_ON_DEMAND = ' on ' ;
37
37
38
38
/**
39
39
* Do not start session on demand but allow access to session bags.
40
40
*/
41
- const NO_START_ON_DEMAND_LAX = 2 ;
41
+ const NO_START_ON_DEMAND_LAX = ' off_lax ' ;
42
42
43
43
/**
44
44
* Starts the session.
45
45
*
46
- * @throws \RuntimeException If something goes wrong starting the session.
46
+ * @throws \RuntimeException If something goes wrong starting the session
47
47
*
48
- * @return boolean True if started.
48
+ * @return boolean True if started
49
49
*
50
50
* @api
51
51
*/
@@ -54,14 +54,14 @@ public function start();
54
54
/**
55
55
* Checks if the session is started.
56
56
*
57
- * @return boolean True if started, false otherwise.
57
+ * @return boolean True if started, false otherwise
58
58
*/
59
59
public function isStarted ();
60
60
61
61
/**
62
62
* Returns the session ID
63
63
*
64
- * @return string The session ID or empty.
64
+ * @return string The session ID or empty
65
65
*
66
66
* @api
67
67
*/
@@ -79,7 +79,7 @@ public function setId($id);
79
79
/**
80
80
* Returns the session name
81
81
*
82
- * @return mixed The session name.
82
+ * @return mixed The session name
83
83
*
84
84
* @api
85
85
*/
@@ -105,11 +105,11 @@ public function setName($name);
105
105
* Note regenerate+destroy should not clear the session data in memory
106
106
* only delete the session data from persistent storage.
107
107
*
108
- * @param Boolean $destroy Destroy session when regenerating?
108
+ * @param Boolean $destroy Flag true to destroy session when regenerating
109
109
* @param integer $lifetime Sets the cookie lifetime for the session cookie. A null value
110
110
* will leave the system settings unchanged, 0 sets the cookie
111
111
* to expire with browser session. Time is in seconds, and is
112
- * not a Unix timestamp.
112
+ * not a Unix timestamp
113
113
*
114
114
* @return Boolean True if session regenerated, false if error
115
115
*
@@ -128,7 +128,7 @@ public function regenerate($destroy = false, $lifetime = null);
128
128
* it should actually persist the session data if required.
129
129
*
130
130
* @throws \RuntimeException If the session is saved without being started, or if the session
131
- * is already closed.
131
+ * is already closed
132
132
*/
133
133
public function save ();
134
134
0 commit comments