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-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_WindowsAzure
- Subpackage
- Session
- Version
- $Id$
\Zend_Service_WindowsAzure_SessionHandler
Package: Zend_Service_WindowsAzure\Session





- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

\Zend_Service_WindowsAzure_Storage_Table|\Zend_Service_WindowsAzure_Storage_Blob $_storageStorage back-end
Methods

__construct(\Zend_Service_WindowsAzure_Storage_Table | \Zend_Service_WindowsAzure_Storage_Blob $storage, string $sessionContainer = 'phpsessions', string $sessionContainerPartition = 'sessions') : voidCreates a new Zend_Service_WindowsAzure_SessionHandler instance
Parameters
| 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) : booleanDestroy a specific session
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | int | Session Id |
| Type | Description |
|---|---|
| boolean |

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

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

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