Public Member Functions | |
| Session_DB (&$db) | |
| close () | |
| destroy ($id) | |
| gc ($lifetime) | |
| open ($path, $name) | |
| read ($id) | |
| write ($id, $data) | |
Public Attributes | |
| $db = null | |
PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet
Description: Session facilities. This class replaces the default session handler with a DB-based one.
Definition at line 15 of file session.php.
| Session_DB::close | ( | ) |
| Session_DB::destroy | ( | $ | id | ) |
Destroy a session
| string | $id Session ID |
Definition at line 53 of file session.php.
| Session_DB::gc | ( | $ | lifetime | ) |
Run garbage collection
| int | Timestamp threshold. Remove entries older than this. |
Definition at line 65 of file session.php.
| Session_DB::open | ( | $ | path, | |
| $ | name | |||
| ) |
Open a new session
| string | $path | |
| string | $name |
Definition at line 79 of file session.php.
| Session_DB::read | ( | $ | id | ) |
Read a session from DB
| string | $id Session ID |
Definition at line 90 of file session.php.
| Session_DB::Session_DB | ( | &$ | db | ) |
Constructor
| object | $db DB access object |
Definition at line 24 of file session.php.
References $db.
| Session_DB::write | ( | $ | id, | |
| $ | data | |||
| ) |
Write a session to DB
| string | $id Session ID | |
| string | $data Serialized session data |
Definition at line 107 of file session.php.
| Session_DB::$db = null |
Definition at line 17 of file session.php.
Referenced by Session_DB().
1.6.1