Returns the session ID.
Return value
string|NULL
The session ID or NULL if this user does not have an active session.
Overrides AccountInterface::getSessionId
File
- drupal/core/lib/Drupal/Core/Session/UserSession.php, line 111
- Contains \Drupal\Core\Session\UserSession.
Class
- UserSession
- An implementation of the user account interface for the global user.
Namespace
Drupal\Core\Session
Code
public function getSessionId() {
return $this->sid;
}