public SessionHandler::destroy($sid)
Destroys a session.
Parameters
string $sessionId Session ID, see http://php.net/function.session-id:
Return value
bool true on success, false on failure
Overrides SessionHandlerInterface::destroy
See also
http://php.net/sessionhandlerinterface.destroy
File
- core/lib/Drupal/Core/Session/SessionHandler.php, line 109
Class
- SessionHandler
- Default session handler.
Namespace
Drupal\Core\Session
Code
public function destroy($sid) { // Delete session data. $this->connection->delete('sessions') ->condition('sid', Crypt::hashBase64($sid)) ->execute(); return TRUE; }
Please login to continue.