Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Service_WindowsAzure_SessionHandler Class Reference

Public Member Functions

 __construct (Zend_Service_WindowsAzure_Storage $storage, $sessionContainer= 'phpsessions', $sessionContainerPartition= 'sessions')
 Creates a new Zend_Service_WindowsAzure_SessionHandler instance.
 
 register ()
 Registers the current session handler as PHP's session handler.
 
 open ()
 Open the session store.
 
 close ()
 Close the session store.
 
 read ($id)
 Read a specific session.
 
 write ($id, $serializedData)
 Write a specific session.
 
 destroy ($id)
 Destroy a specific session.
 
 gc ($lifeTime)
 Garbage collector.
 

Public Attributes

const MAX_TS_PROPERTY_SIZE = 65536
 
const STORAGE_TYPE_TABLE = 'table'
 Storage backend type.
 
const STORAGE_TYPE_BLOB = 'blob'
 

Protected Attributes

 $_storage
 
 $_storageType
 
 $_sessionContainer
 
 $_sessionContainerPartition
 

Constructor & Destructor Documentation

__construct ( Zend_Service_WindowsAzure_Storage  $storage,
  $sessionContainer = 'phpsessions',
  $sessionContainerPartition = 'sessions' 
)

Creates a new Zend_Service_WindowsAzure_SessionHandler instance.

Parameters
Zend_Service_WindowsAzure_Storage_Table | Zend_Service_WindowsAzure_Storage_Blob$storageStorage back-end, can be table storage and blob storage
string$sessionContainerSession container name
string$sessionContainerPartitionSession container partition

Member Function Documentation

close ( )

Close the session store.

Returns
bool
destroy (   $id)

Destroy a specific session.

Parameters
int$idSession Id
Returns
boolean
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
open ( )

Open the session store.

Returns
bool
read (   $id)

Read a specific session.

Parameters
int$idSession Id
Returns
string
register ( )

Registers the current session handler as PHP's session handler.

Returns
boolean
write (   $id,
  $serializedData 
)

Write a specific session.

Parameters
int$idSession Id
string$serializedDataSerialized PHP object
Exceptions
Exception

Member Data Documentation

$_sessionContainer
protected
$_sessionContainerPartition
protected
$_storage
protected
$_storageType
protected
const MAX_TS_PROPERTY_SIZE = 65536
const STORAGE_TYPE_BLOB = 'blob'
const STORAGE_TYPE_TABLE = 'table'

Storage backend type.