Skip to content

Commit cf74914

Browse files
humandbweaverryan
authored andcommitted
Update reference/configuration/framework.rst
Adding versionadded
1 parent cce310f commit cf74914

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

reference/configuration/framework.rst

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,71 +148,85 @@ session
148148
cookie_lifetime
149149
...............
150150

151+
.. versionadded:: 2.1
152+
This option was formerly know as ``lifetime``
153+
151154
**type**: ``integer`` **default**: ``0``
152155

153156
This determines the lifetime of the session - in seconds. By default it will use
154157
``0``, which means the cookie is valid for the length of the browser session.
155158

156-
In Symfony 2.1 and before this option was formerly know as ``lifetime``.
157-
158159
cookie_path
159160
...........
160161

162+
.. versionadded:: 2.1
163+
This option was formerly know as ``path``
164+
161165
**type**: ``string`` **default**: ``/``
162166

163167
This determines the path to set in the session cookie. By default it will use ``/``.
164168

165-
In Symfony 2.1 and before this option was formerly known as ``path``.
166-
167169
cookie_domain
168170
.............
169171

172+
.. versionadded:: 2.1
173+
This option was formerly know as ``domain``
174+
170175
**type**: ``string`` **default**: ````
171176

172177
This determines the domain to set in the session cookie. By default it's blank meaning the
173178
host name of the server which generated the cookie according to the cookie specification.
174179

175-
In Symfony 2.1 and before this option was formerly known as ``domain``.
176-
177180
cookie_secure
178181
.............
179182

183+
.. versionadded:: 2.1
184+
This option was formerly know as ``secure``
185+
180186
**type**: ``Boolean`` **default**: ``false``
181187

182188
This determines whether cookies should only be sent over secure connections.
183189

184-
In Symfony 2.1 and before this option was formerly known as ``secure``.
185-
186190
cookie_httponly
187191
...............
188192

193+
.. versionadded:: 2.1
194+
This option was formerly know as ``httponly``
195+
189196
**type**: ``Boolean`` **default**: ``false``
190197

191198
This determines whether cookies should only accesible through the HTTP protocol. This means
192199
that the cookie won't be accesible by scripting languages, such as Javascript. This setting
193200
can effectively help to reduce identity theft through XSS attacks.
194201

195-
In Symfony 2.1 and before this option was formerly known as ``httponly``.
196-
197202
gc_probability
198203
..............
199204

205+
.. versionadded:: 2.1
206+
The ``gc_probability`` option is new in version 2.1
207+
200208
**type**: ``integer`` **default**: ``1``
201209

202210
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``,
204212
e.g. 1/100 means there is a 1% chance that the GC process start on each request.
205213

206214
gc_divisor
207215
..........
208216

217+
.. versionadded:: 2.1
218+
The ``gc_divisor`` option is new in version 2.1
219+
209220
**type**: ``integer`` **default**: ``1``
210221

211222
See ``gc_probability``_.
212223
213224
gc_maxlifetime
214225
..............
215226
227+
.. versionadded:: 2.1
228+
The ``gc_maxlifetime`` option is new in version 2.1
229+
216230
**type**: ``integer`` **default**: ``14400``
217231

218232
This determines the number of seconds after whih data will be seen as `garbage` and potentially cleaned up.

0 commit comments

Comments
 (0)