Provides support for session storage using a CreoleDb database abstraction layer.
Method Summary
initialize , regenerate , sessionClose , sessionDestroy , sessionGC , sessionOpen , sessionRead , sessionWrite , shutdown
initialize , read , regenerate , remove , shutdown , write
Methods inherited from sfStorage
getOptions , initialize , read , regenerate , remove , shutdown , write , __construct
Method Details
-
(bool) sessionDestroy ($id)
Browse code
Destroy a session.
returns true, if the session was destroyed, otherwise an exception is thrown.
throws DatabaseException If the session cannot be destroyed.
-
(bool) sessionGC ($lifetime)
Browse code
| $lifetime |
The lifetime of a session. |
Cleanup old sessions.
returns true, if old sessions have been cleaned, otherwise an exception is thrown.
throws DatabaseException If any old sessions cannot be cleaned.
-
(bool) sessionRead ($id)
Browse code
Read a session.
returns true, if the session was read, otherwise an exception is thrown.
throws DatabaseException If the session cannot be read.
-
(bool) sessionWrite ($id, $data)
Browse code
| $id |
A session ID. |
| $data |
A serialized chunk of session data. |
Write session data.
returns true, if the session was written, otherwise an exception is thrown.
throws DatabaseException If the session data cannot be written.
|