Chyrp

Session

Handles their session.

Summary
Session Handles their session.
Variables
$data Caches session data.
Functions
open Returns: true
close Returns: true
read Reads their session from the database.
write Writes their session to the database, or updates it if it already exists.
destroy Destroys their session.
gc Garbage collector.  Removes sessions older than 30 days and sessions with no stored data.

Variables

$data

static $data

Caches session data.

Functions

open

static function open()

Returns: true

close

static function close()

Returns: true

read

static function read( $id )

Reads their session from the database.

Parameters

$id Session ID.

write

static function write( $id,
$data )

Writes their session to the database, or updates it if it already exists.

Parameters

$id Session ID.
$data Data to write.

destroy

static function destroy( $id )

Destroys their session.

Parameters

$id Session ID.

gc

static function gc()

Garbage collector.  Removes sessions older than 30 days and sessions with no stored data.