public function registerNewSession($sessionId, $username, $lastUsed = null)
    {
        $sessionInformation = new SessionInformation($sessionId, $username, $lastUsed ?: time());

        $this->saveSessionInformation($sessionInformation);
    }
public function registerNewSession($sessionId, $username, $lastUsed = null)
    {
        $sessionInformation = new SessionInformation($sessionId, $username, $lastUsed ?: time());

        $this->saveSessionInformation($sessionInformation);
    }
public function registerNewSession ( $ sessionId , $ username , $ lastUsed = null ) { $ sessionInformation = new SessionInformation ( $ sessionId , $ username , $ lastUsed ? : time ( ) ) ; $ this -> saveSessionInformation ( $ sessionInformation ) ; }
Registers a new session for the given user.

@param string $sessionId the session identifier key.
@param string $username  the given user.
@param int    $lastUsed
Registers a new session for the given user .