Skip to content

Instantly share code, notes, and snippets.

@ericsk
Created December 30, 2013 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericsk/8183037 to your computer and use it in GitHub Desktop.
Save ericsk/8183037 to your computer and use it in GitHub Desktop.
用 Windows Azure Table Storgae 實作 PHP Session
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