Created
December 30, 2013 14:58
-
-
Save ericsk/8183037 to your computer and use it in GitHub Desktop.
用 Windows Azure Table Storgae 實作 PHP Session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WindowsAzureTableSessionHandler implements SessionHandlerInterface { | |
... | |
public function __construct($storageAccountName, $storageAccountKey, | |
$sessionContainer = 'phpsessions', $sessionContainerPartition = 'sessions') { ... } | |
public function __destruct() { ... } | |
public function open($savePath, $sessionName) { ... } | |
public function close() { ... } | |
public function read($sessionId) { ... } | |
public function write($sessionId, $sessionData) { ... } | |
public function destroy($sessionId) { ... } | |
public function gc($lifeTime) { ... } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment