Phpfox_Session_Handler_File

Description

File Based Session Hanlder

  • author: Raymond Benc
  • version: $Id: session.class.php 290 2009-03-08 18:07:34Z Raymond_Benc $
  • copyright: [PHPFOX_COPYRIGHT]

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


	
			
Variable Summary
 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
string $_sPrefix = 'sess_' (line 30)

Session prefix.

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

Path to save a session.

  • access: private
Methods
close (line 92)

Close a session file.

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

Remove session file.

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

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

Start the session.

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

Open a session file.

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

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

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:39 +0200 by phpDocumentor 1.4.0a2