Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

Abstract Class JSessionStorage

Description

Custom session storage handler for PHP

Located in /joomla/environment/sessionstorage.php (line 28)

Class JObject   (Subpackage Base)

Abstract class JSessionStorage   (Subpackage Environment)
Direct descendents
Class Description
ClassJSessionStorageNone File session handler for PHP
ClassJSessionStorageApc APC session storage handler for PHP
ClassJSessionStorageEaccelerator eAccelerator session storage handler for PHP
ClassJSessionStorageDatabase Database session storage handler for PHP
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)
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 109)

Close the SessionHandler backend.

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

Redefined in descendants as:
destroy (line 151)

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

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

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

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

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

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

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::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 21:21:42 +0000 by phpDocumentor 1.3.1