File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
.. index ::
2
2
single: Limit Metadata Writes; Session
3
3
4
- Limit session metadata writes
4
+ Limit Session Metadata Writes
5
5
=============================
6
6
7
7
.. versionadded :: 2.4
8
8
The ability to limit session metadata writes was added in Symfony 2.4.
9
9
10
- The default behaviour of PHP session is to persist the session regardless of
10
+ The default behavior of PHP session is to persist the session regardless of
11
11
whether the session data has changed or not. In Symfony, each time the session
12
- is accessed metadata is recorded (session created/last used) which can be used
12
+ is accessed, metadata is recorded (session created/last used) which can be used
13
13
to determine session age and idle time.
14
14
15
15
If for performance reasons you wish to limit the frequency at which the session
@@ -53,12 +53,12 @@ than zero:
53
53
),
54
54
));
55
55
56
- .. info ::
56
+ .. note ::
57
57
58
58
PHP default's behavior is to save the session whether it has been changed or
59
59
not. When using ``framework.session.metadata_update_threshold `` Symfony
60
60
will wrap the session handler (configured at
61
- ``framework.session.handler_id ``) into the WriteCheckSessionHandler, that
61
+ ``framework.session.handler_id ``) into the WriteCheckSessionHandler. This
62
62
will prevent any session write if the session was not modified.
63
63
64
64
.. caution ::
You can’t perform that action at this time.
0 commit comments