Skip to content

Commit cf6d58d

Browse files
committed
Merge pull request #1565 from drak/sessionsync
Update session docs
2 parents 285f806 + 4b662ec commit cf6d58d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

components/http_foundation/session_configuration.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,17 @@ While native save handlers can be activated by directly using
3535
``ini_set('session.save_handler', $name);``, Symfony2 provides a convenient way to
3636
activate these in the same way as custom handlers.
3737

38-
Symfony2 provides drivers for the following native save handlers:
38+
Symfony2 provides drivers for the following native save handler as an example:
3939

4040
* :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeFileSessionHandler`
41-
* :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeSqliteSessionHandler`
42-
* :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeMemcacheSessionHandler`
43-
* :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeMemcachedSessionHandler`
44-
* :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeRedisSessionHandler`
4541

4642
Example usage::
4743

4844
use Symfony\Component\HttpFoundation\Session\Session;
4945
use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
50-
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeMemcachedSessionHandler;
46+
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler;
5147

52-
$storage = new NativeSessionStorage(array(), new NativeMemcachedSessionHandler());
48+
$storage = new NativeSessionStorage(array(), new NativeFileSessionHandler());
5349
$session = new Session($storage);
5450

5551
.. note::

components/http_foundation/sessions.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ Quick example::
4242
``session_id()``, ``session_name()``, and ``session_destroy()`` and instead
4343
use the APIs in the following section.
4444

45+
.. note::
46+
47+
While it is recommended to explicitly start a session, a sessions will actually
48+
start on demand, that is, if any session request is made to read/write session
49+
data.
50+
4551
.. warning::
4652

4753
Symfony sessions are incompatible with PHP ini directive ``session.auto_start = 1``

0 commit comments

Comments
 (0)