[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/session/src/ -> lmbSessionDbStorage.class.php (summary)

(no description)

File Size: 146 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

lmbSessionDbStorage:: (8 methods):
  __construct()
  install()
  storageOpen()
  storageClose()
  storageRead()
  storageWrite()
  storageDestroy()
  storageGc()


Class: lmbSessionDbStorage  - X-Ref

lmbSessionDbStorage store session data in database.
sys_session db table used to store session data.
The structure of sys_session db table can be found in limb/session/init/ folder.

__construct($db_connection, $max_life_time = null)   X-Ref
Constructor.

param: lmbDbConnection database connection object
param: integer maximum session life time

install()   X-Ref

return: void

storageOpen()   X-Ref
Opens session storage
Does nothing and returns true

return: boolean

storageClose()   X-Ref
Closes session storage
Does nothing and returns true

return: boolean

storageRead($session_id)   X-Ref
Read a single row from <b>sys_session</b> db table and returns <b>session_data</b> column

param: string session ID
return: mixed

storageWrite($session_id, $value)   X-Ref
Creates new or updates existing row in <b>sys_session</b> db table

param: string session ID
param: mixed session data
return: void

storageDestroy($session_id)   X-Ref
Removed a row from <b>sys_session</b> db table

param: string session ID
return: void

storageGc($max_life_time)   X-Ref
Checks if storage is still valid. If session if not valid - removes it's row from <b>sys_session</b> db table
Prefers class attribute {@link $max_life_time} if it's not NULL.

param: integer system session max life time
return: void



Generated: Thu Aug 28 04:51:15 2008 Cross-referenced by PHPXref 0.7