public SessionHandler::destroy($sid)
Destroys a session.
string $sessionId Session ID, see http://php.net/function.session-id:
bool true on success, false on failure
Overrides SessionHandlerInterface::destroy
http://php.net/sessionhandlerinterface.destroy
public function destroy($sid) { // Delete session data. $this->connection->delete('sessions') ->condition('sid', Crypt::hashBase64($sid)) ->execute(); return TRUE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!SessionHandler.php/function/SessionHandler::destroy/8.1.x