Back to SessionManager class

Method destroySession

public bool
destroySession
(string $sessionId)
Destroys the given session ID.
Parameters
  • string $sessionId The session ID to destroy.
Returns
  • bool
Since
  • 4.0.0

Method destroySession - Source code

/**
 * Destroys the given session ID.
 *
 * @param   string  $sessionId  The session ID to destroy.
 *
 * @return  boolean
 *
 * @since   4.0.0
 */
public function destroySession(string $sessionId) : bool
{
    return $this->sessionHandler->destroy($sessionId);
}