API Documentation

Service/WindowsAzure/SessionHandler.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Service_WindowsAzure  
subpackage
Session  
version
$Id: SessionHandler.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Service_WindowsAzure_SessionHandler

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

Properties

Propertyprotectedstring  $_sessionTable= ''

Session table name

Details
Type
string
Propertyprotectedstring  $_sessionTablePartition= ''

Session table partition

Details
Type
string
Propertyprotected\Zend_Service_WindowsAzure_Storage_Table  $_tableStorage= ''

Table storage

Methods

methodpublic__construct( \Zend_Service_WindowsAzure_Storage_Table $tableStorage, string $sessionTable = phpsessions, string $sessionTablePartition = sessions ) : void

Creates a new Zend_Service_WindowsAzure_SessionHandler instance

Parameters
Name Type Description
$tableStorage \Zend_Service_WindowsAzure_Storage_Table Table storage
$sessionTable string Session table name
$sessionTablePartition string Session table partition
methodpublicclose( ) : bool

Close the session store

Returns
Type Description
bool
methodpublicdestroy( int $id ) : boolean

Destroy a specific session

Parameters
Name Type Description
$id int Session Id
Returns
Type Description
boolean
methodpublicgc( int $lifeTime ) : boolean

Garbage collector

Parameters
Name Type Description
$lifeTime int Session maximal lifetime
Returns
Type Description
boolean
Details
see
\session.gc_divisor  
see
\session.gc_maxlifetime  
see
\session.gc_probability  
usage
Execution rate 1/100 (session.gc_probability/session.gc_divisor)  
methodpublicopen( ) : bool

Open the session store

Returns
Type Description
bool
methodpublicread( int $id ) : string

Read a specific session

Parameters
Name Type Description
$id int Session Id
Returns
Type Description
string
methodpublicregister( ) : boolean

Registers the current session handler as PHP's session handler

Returns
Type Description
boolean
methodpublicwrite( int $id, string $serializedData ) : void

Write a specific session

Parameters
Name Type Description
$id int Session Id
$serializedData string Serialized PHP object
Documentation was generated by DocBlox 0.13.3.