Skip to content

Instantly share code, notes, and snippets.

@ericsk
Created December 30, 2013 15:02
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/8183095 to your computer and use it in GitHub Desktop.
Save ericsk/8183095 to your computer and use it in GitHub Desktop.
WindowsAzureSessionHandler 的 destroy 方法
/**
* Callback function for session handler. It's invoked while the session is being destroyed.
*
* @param $sessionId The session ID.
*
* @return boolean If the destroy process success.
*/
public function destroy($sessionId) {
try {
$this->_tableRestProxy->deleteEntity($this->_sessionContainer, $this->_sessionContainerParition, $sessionId);
return TRUE;
} catch (ServiceException $e) {
return FALSE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment