symfony API

sfMySQLSessionStorage Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

Provides support for session storage using a MySQL brand database.

Inheritence

sfMySQLSessionStorage  <  sfSessionStorage < sfStorage

Method Summary

Methods inherited from sfSessionStorage

& , 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

  • shutdown () Browse code

    Executes the shutdown procedure.