Commit 2835ec5e authored by Fabien Potencier's avatar Fabien Potencier

merged branch lukestokes/minor_session_doc_change (PR #536)

This PR was squashed before being merged into the master branch (closes #536).

Commits
-------

a9552481 Minor session documentation change.

Discussion
----------

Minor session documentation change.

Thanks to igorw in #silex-php, we were able to get our redis sessions
working in Silex. At his request, I'm updating the docs to indicate what
he came up with.

---------------------------------------------------------------------------

by igorw at 2012-11-08T18:26:20Z

Looks good, but please wrap the long line at 80 chars.

---------------------------------------------------------------------------

by igorw at 2012-11-08T19:04:07Z

👍
parents 11309518 a9552481
...@@ -83,3 +83,17 @@ authenticates a user and creates a session for him:: ...@@ -83,3 +83,17 @@ authenticates a user and creates a session for him::
return "Welcome {$user['username']}!"; return "Welcome {$user['username']}!";
}); });
Custom Session Configurations
-----------------------------
If your system is using a custom session configuration (such as a redis handler
from a PHP extension) then you need to disable the NativeFileSessionHandler by
setting ``session.storage.handler`` to null. You will have to configure the
``session.save_path`` ini setting yourself in that case.
.. code-block:: php
$app['session.storage.handler'] = null;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment