Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_WindowsAzure_SessionHandler Class Reference

Public Member Functions

 __construct (Zend_Service_WindowsAzure_Storage_Table $tableStorage, $sessionTable= 'phpsessions', $sessionTablePartition= 'sessions')
 register ()
 open ()
 close ()
 read ($id)
 write ($id, $serializedData)
 destroy ($id)
 gc ($lifeTime)

Protected Attributes

 $_tableStorage
 $_sessionTable
 $_sessionTablePartition

Detailed Description

Definition at line 38 of file SessionHandler.php.


Constructor & Destructor Documentation

__construct ( Zend_Service_WindowsAzure_Storage_Table tableStorage,
sessionTable = 'phpsessions',
sessionTablePartition = 'sessions' 
)

Creates a new Zend_Service_WindowsAzure_SessionHandler instance

Parameters:
Zend_Service_WindowsAzure_Storage_Table$tableStorageTable storage
string$sessionTableSession table name
string$sessionTablePartitionSession table partition

Definition at line 68 of file SessionHandler.php.


Member Function Documentation

close ( )

Close the session store

Returns:
bool

Definition at line 114 of file SessionHandler.php.

destroy ( id)

Destroy a specific session

Parameters:
int$idSession Id
Returns:
boolean

Definition at line 172 of file SessionHandler.php.

gc ( lifeTime)

Garbage collector

Parameters:
int$lifeTimeSession maximal lifetime
See also:
session.gc_divisor 100
session.gc_maxlifetime 1440
session.gc_probability 1 Execution rate 1/100 (session.gc_probability/session.gc_divisor)
Returns:
boolean

Definition at line 201 of file SessionHandler.php.

open ( )

Open the session store

Returns:
bool

Definition at line 97 of file SessionHandler.php.

read ( id)

Read a specific session

Parameters:
int$idSession Id
Returns:
string

Definition at line 125 of file SessionHandler.php.

register ( )

Registers the current session handler as PHP's session handler

Returns:
boolean

Definition at line 81 of file SessionHandler.php.

write ( id,
serializedData 
)

Write a specific session

Parameters:
int$idSession Id
string$serializedDataSerialized PHP object

Definition at line 148 of file SessionHandler.php.


Field Documentation

$_sessionTable [protected]

Definition at line 52 of file SessionHandler.php.

$_sessionTablePartition [protected]

Definition at line 59 of file SessionHandler.php.

$_tableStorage [protected]

Definition at line 45 of file SessionHandler.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations