Provides support for session storage using a MySQL brand database.
Method Summary
& , initialize , shutdown , write
Methods inherited from sfStorage
& , getContext , getParameter , getParameterHolder , hasParameter , initialize , newInstance , setParameter , shutdown , write
Method Details
-
(boolean) initialize (, )
Browse code
Initializes this Storage instance.
returns true, if initialization completes successfully, otherwise false
throws sfInitializationException If an error occurs while initializing this Storage
-
(boolean) sessionClose ()
Browse code
Closes a session.
returns true, if the session was closed, otherwise false
-
(boolean) sessionDestroy ()
Browse code
Destroys a session.
returns true, if the session was destroyed, otherwise an exception is thrown
throws sfDatabaseException If the session cannot be destroyed.
-
(boolean) sessionGC ()
Browse code
Cleans up old sessions.
returns true, if old sessions have been cleaned, otherwise an exception is thrown
throws sfDatabaseException If any old sessions cannot be cleaned
-
(boolean) sessionOpen (, )
Browse code
Opens a session.
returns true, if the session was opened, otherwise an exception is thrown
throws sfDatabaseException If a connection with the database does not exist or cannot be created
-
(boolean) sessionRead ()
Browse code
Reads a session.
returns true, if the session was read, otherwise an exception is thrown
throws sfDatabaseException If the session cannot be read
-
(boolean) sessionWrite (, )
Browse code
Writes session data.
returns true, if the session was written, otherwise an exception is thrown
throws sfDatabaseException If the session data cannot be written
-
Executes the shutdown procedure.
|