symfony API

sfPostgreSQLSessionStorage Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

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 PostgreSQL brand database.

Inheritence

sfPostgreSQLSessionStorage  <  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 (, )

    Initializes this Storage instance.

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this Storage

  • (boolean) sessionClose ()

    Closes a session.

    returns true, if the session was closed, otherwise false

  • (boolean) sessionDestroy ()

    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 ()

    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 (, )

    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 ()

    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 (, )

    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 ()

    Executes the shutdown procedure.