Phpfox_Session_Handler_Memcache

Description

Memcached Session Handler

  • author: Raymond Benc
  • version: $Id: memcache.class.php 1687 2010-07-22 03:13:27Z Raymond_Benc $
  • copyright: [PHPFOX_COPYRIGHT]

Located in /include/library/phpfox/session/handler/memcache.class.php (line 16)


	
			
Variable Summary
 object $_oDb
 string $_sPrefix
 string $_sSavePath
Method Summary
 bool close ()
 bool destroy (int $iId)
 bool gc (int $iMaxLifetime)
 mixed init ()
 bool open ()
 mixed read (int $iId)
 bool write (int $iId, string $mData)
Variables
object $_oDb = null (line 37)

Memcached object.

  • access: private
string $_sPrefix = 'php_sess_' (line 30)

Session prefix.

  • access: private
string $_sSavePath = '' (line 23)

Path to save a session.

  • access: private
Methods
close (line 84)

Close a session file.

  • return: Always TRUE.
  • access: public
bool close ()
destroy (line 123)

Remove session file.

  • return: TRUE on success, FALSE on failure.
  • access: public
bool destroy (int $iId)
  • int $iId: Session ID.
gc (line 134)

Garbage collecting.

  • return: Always TRUE.
  • access: public
bool gc (int $iMaxLifetime)
  • int $iMaxLifetime: Define how long a session can exist on the server.
init (line 44)

Start the session.

  • return: NULL if no errors, however FALSE if session cannot start.
  • access: public
mixed init ()
open (line 74)

Open a session file.

  • return: Always TRUE.
  • access: public
bool open ()
read (line 95)

Read a session file.

  • return: FALSE if not exists, STRING if file exists.
  • access: public
mixed read (int $iId)
  • int $iId: File ID.
write (line 112)

Write to session file.

  • return: TRUE if success, FALSE on failure.
  • access: public
bool write (int $iId, string $mData)
  • int $iId: Session ID.
  • string $mData: Session Data.

Documentation generated on Tue, 28 Sep 2010 10:36:41 +0200 by phpDocumentor 1.4.0a2