Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

Abstract Class JSessionStorage

Description

Custom session storage handler for PHP

Located in /joomla/session/storage.php (line 28)

Class JObject   (Subpackage Base)

Abstract class JSessionStorage   (Subpackage Session)
Direct descendents
Class Description
ClassJSessionStorageApc APC session storage handler for PHP
ClassJSessionStorageDatabase Database session storage handler for PHP
ClassJSessionStorageEaccelerator eAccelerator session storage handler for PHP
ClassJSessionStorageMemcache Memcache session storage handler for PHP
ClassJSessionStorageNone File session handler for PHP
ClassJSessionStorageXcache XCache session storage handler
Method Summary
Static method static boolean test ()
Constructor JSessionStorage __construct ([array $options = array()])
Abstract method boolean close ()
Abstract method boolean destroy (string $id)
Abstract method boolean gc (integer $maxlifetime)
Method database &getInstance ([name $name = 'none'], [ $options = array()])
Abstract method boolean open (string $save_path, string $session_name)
Abstract method string read (string $id)
Method void register ([array $options = array()])
Abstract method boolean write (string $id, string $session_data)
Variables

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
Constructor __construct (line 36)

Constructor

  • access: protected
JSessionStorage __construct ([array $options = array()])
  • array $options: optional parameters

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.

Redefined in descendants as:
close (line 119)

Close the SessionHandler backend.

  • return: True on success, false otherwise.
  • access: public
  • abstract:
boolean close ()

Redefined in descendants as:
destroy (line 161)

Destroy the data for a particular session identifier in the SessionHandler backend.

  • return: True on success, false otherwise.
  • access: public
  • abstract:
boolean destroy (string $id)
  • string $id: The session identifier.

Redefined in descendants as:
gc (line 174)

Garbage collect stale sessions from the SessionHandler backend.

  • return: True on success, false otherwise.
  • access: public
  • abstract:
boolean gc (integer $maxlifetime)
  • integer $maxlifetime: The maximum age of a session.

Redefined in descendants as:
getInstance (line 50)

Returns a reference to a session storage handler object, only creating it if it doesn't already exist.

  • return: A JSessionStorage object
  • since: 1.5
  • access: public
database &getInstance ([name $name = 'none'], [ $options = array()])
  • name $name: The session store to instantiate
  • $options
open (line 107)

Open the SessionHandler backend.

  • return: True on success, false otherwise.
  • access: public
  • abstract:
boolean open (string $save_path, string $session_name)
  • string $save_path: The path to the session object.
  • string $session_name: The name of the session.

Redefined in descendants as:
read (line 133)

Read the data for a particular session identifier from the SessionHandler backend.

  • return: The session data.
  • access: public
  • abstract:
string read (string $id)
  • string $id: The session identifier.

Redefined in descendants as:
register (line 85)

Register the functions of this class with PHP's session handler

  • access: public
void register ([array $options = array()])
  • array $options: optional parameters

Redefined in descendants as:
test (line 187)

Test to see if the SessionHandler is available.

  • return: True on success, false otherwise.
  • access: public
  • abstract:
boolean test ()

Redefined in descendants as:
write (line 147)

Write session data to the SessionHandler backend.

  • return: True on success, false otherwise.
  • access: public
  • abstract:
boolean write (string $id, string $session_data)
  • string $id: The session identifier.
  • string $session_data: The session data.

Redefined in descendants as:

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::getPublicProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()

Documentation generated on Tue, 29 Jan 2008 18:51:35 +0000 by phpDocumentor 1.3.1