getId() public method

Returns the session ID
public getId ( ) : mixed
return mixed The session ID
 /**
  * Returns the ID of the user session
  *
  * Automatically starts the session if necessary.
  *
  * @return string  The session ID
  */
 protected function getSessionId()
 {
     return $this->session->getId();
 }