@@ -148,71 +148,85 @@ session
148
148
cookie_lifetime
149
149
...............
150
150
151
+ .. versionadded :: 2.1
152
+ This option was formerly know as ``lifetime ``
153
+
151
154
**type **: ``integer `` **default **: ``0 ``
152
155
153
156
This determines the lifetime of the session - in seconds. By default it will use
154
157
``0 ``, which means the cookie is valid for the length of the browser session.
155
158
156
- In Symfony 2.1 and before this option was formerly know as ``lifetime ``.
157
-
158
159
cookie_path
159
160
...........
160
161
162
+ .. versionadded :: 2.1
163
+ This option was formerly know as ``path ``
164
+
161
165
**type **: ``string `` **default **: ``/ ``
162
166
163
167
This determines the path to set in the session cookie. By default it will use ``/ ``.
164
168
165
- In Symfony 2.1 and before this option was formerly known as ``path ``.
166
-
167
169
cookie_domain
168
170
.............
169
171
172
+ .. versionadded :: 2.1
173
+ This option was formerly know as ``domain ``
174
+
170
175
**type **: ``string `` **default **: ````
171
176
172
177
This determines the domain to set in the session cookie. By default it's blank meaning the
173
178
host name of the server which generated the cookie according to the cookie specification.
174
179
175
- In Symfony 2.1 and before this option was formerly known as ``domain ``.
176
-
177
180
cookie_secure
178
181
.............
179
182
183
+ .. versionadded :: 2.1
184
+ This option was formerly know as ``secure ``
185
+
180
186
**type **: ``Boolean `` **default **: ``false ``
181
187
182
188
This determines whether cookies should only be sent over secure connections.
183
189
184
- In Symfony 2.1 and before this option was formerly known as ``secure ``.
185
-
186
190
cookie_httponly
187
191
...............
188
192
193
+ .. versionadded :: 2.1
194
+ This option was formerly know as ``httponly ``
195
+
189
196
**type **: ``Boolean `` **default **: ``false ``
190
197
191
198
This determines whether cookies should only accesible through the HTTP protocol. This means
192
199
that the cookie won't be accesible by scripting languages, such as Javascript. This setting
193
200
can effectively help to reduce identity theft through XSS attacks.
194
201
195
- In Symfony 2.1 and before this option was formerly known as ``httponly ``.
196
-
197
202
gc_probability
198
203
..............
199
204
205
+ .. versionadded :: 2.1
206
+ The ``gc_probability `` option is new in version 2.1
207
+
200
208
**type **: ``integer `` **default **: ``1 ``
201
209
202
210
This defines the probability that the garbage collector (GC) process is started on every session
203
- initialization. The probability is calculated by using ``gc_probability``_ / ``gc_divisor``_ ,
211
+ initialization. The probability is calculated by using ``gc_probability `` / ``gc_divisor ``,
204
212
e.g. 1/100 means there is a 1% chance that the GC process start on each request.
205
213
206
214
gc_divisor
207
215
..........
208
216
217
+ .. versionadded :: 2.1
218
+ The ``gc_divisor `` option is new in version 2.1
219
+
209
220
**type **: ``integer `` **default **: ``1 ``
210
221
211
222
See ``gc_probability``_.
212
223
213
224
gc_maxlifetime
214
225
..............
215
226
227
+ .. versionadded:: 2.1
228
+ The ``gc_maxlifetime `` option is new in version 2.1
229
+
216
230
**type **: ``integer `` **default **: ``14400 ``
217
231
218
232
This determines the number of seconds after whih data will be seen as `garbage ` and potentially cleaned up.
0 commit comments