Omeka_Application_Resource_Session

Package: Application\Resource

class Omeka_Application_Resource_Session

extends Zend_Application_Resource_Session

Initialize the session.

Customizes the session name to prevent session overlap between different applications that operate on the same server.

Omeka_Application_Resource_Session::init()
Omeka_Application_Resource_Session::_getSessionConfig()

Retrieve global session configuration options.

Returns:array An array containing all the global configuration options for sessions. This array contains at least one key, ‘name’, corresponding to the name of the session, which is generated automatically if not provided.
Omeka_Application_Resource_Session::_buildSessionName()

Create a unique session name.

Hashes the base directory, this ensures that session names differ between Omeka instances on the same server.

Returns:string
Omeka_Application_Resource_Session::_setOptionsFromConfig()
Omeka_Application_Resource_Session::_canUseDbSessions($options)

Check if the DB is recent enough to use DB sessions by default.

Recent enough means that the DB version is 2.0 or higher. We can’t use the DB sessions until the upgrade is complete to 2.0+.

Parameters:
  • $options (array) –
Returns:

bool