category Zend
package Zend_Service_WindowsAzure
subpackage Session
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Creates a new Zend_Service_WindowsAzure_SessionHandler instance

__construct(\Zend_Service_WindowsAzure_Storage_Table|\Zend_Service_WindowsAzure_Storage_Blob $storage, string $sessionContainer = 'phpsessions', string $sessionContainerPartition = 'sessions'

Parameters

$storage

\Zend_Service_WindowsAzure_Storage_Table\Zend_Service_WindowsAzure_Storage_Blob

Storage back-end, can be table storage and blob storage

$sessionContainer

string

Session container name

$sessionContainerPartition

string

Session container partition

Close the session store

close() : boolean

Returns

boolean

Destroy a specific session

destroy(integer $id) : boolean

Parameters

$id

integer

Session Id

Returns

boolean

Garbage collector

gc(integer $lifeTime) : boolean
see 100
see 1440
see 1
usage Execution rate 1/100 (session.gc_probability/session.gc_divisor)

Parameters

$lifeTime

integer

Session maximal lifetime

Returns

boolean

Open the session store

open() : boolean

Returns

boolean

Read a specific session

read(integer $id) : string

Parameters

$id

integer

Session Id

Returns

string

Registers the current session handler as PHP's session handler

register() : boolean

Returns

boolean

Write a specific session

write(integer $id, string $serializedData) 

Parameters

$id

integer

Session Id

$serializedData

string

Serialized PHP object

Exceptions

\Exception

 Properties

 

Session container name

$_sessionContainer : string

Default

 

Session container partition

$_sessionContainerPartition : string

Default

 

Storage back-end

$_storage : \Zend_Service_WindowsAzure_Storage_Table | \Zend_Service_WindowsAzure_Storage_Blob

Default

 

Storage backend type

$_storageType : string

Default

 Constants

 

Maximal property size in table storage.

MAX_TS_PROPERTY_SIZE = 65536 : integer
see
 

STORAGE_TYPE_BLOB

STORAGE_TYPE_BLOB = 'blob' 
 

Storage backend type

STORAGE_TYPE_TABLE = 'table'