Service/WindowsAzure/SessionHandler.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_WindowsAzure
- Subpackage
- Session
- Version
- $Id: SessionHandler.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Service_WindowsAzure_SessionHandler
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants

int
MAX_TS_PROPERTY_SIZE
= 65536
- See
- \http://msdn.microsoft.com/en-us/library/dd179338.aspx
- int
Properties


\Zend_Service_WindowsAzure_Storage_Table|\Zend_Service_WindowsAzure_Storage_Blob $_storage
Methods


__construct(\Zend_Service_WindowsAzure_Storage_Table | \Zend_Service_WindowsAzure_Storage_Blob $storage, string $sessionContainer = 'phpsessions', string $sessionContainerPartition = 'sessions') : void
Creates a new Zend_Service_WindowsAzure_SessionHandler instance
Name | Type | Description |
---|---|---|
$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 |


destroy(int $id) : boolean
Destroy a specific session
Name | Type | Description |
---|---|---|
$id | int | Session Id |
Type | Description |
---|---|
boolean |


gc(int $lifeTime) : boolean
Garbage collector
Name | Type | Description |
---|---|---|
$lifeTime | int | Session maximal lifetime |
Type | Description |
---|---|
boolean |
- See
- 100
- See
- 1440
- See
- 1
- Usage
- Execution rate 1/100 (session.gc_probability/session.gc_divisor)


read(int $id) : string
Read a specific session
Name | Type | Description |
---|---|---|
$id | int | Session Id |
Type | Description |
---|---|
string |


register() : boolean
Registers the current session handler as PHP's session handler
Type | Description |
---|---|
boolean |


write(int $id, string $serializedData) : void
Write a specific session
Name | Type | Description |
---|---|---|
$id | int | Session Id |
$serializedData | string | Serialized PHP object |
Exception | Description |
---|---|
\Exception |