src/Http/Session/Registry/SessionRegistry.php
public function refreshLastUsed($sessionId, $lastUsed = null)
    {
        if ($sessionInformation = $this->getSessionInformation($sessionId)) {
            if ($sessionInformation->getLastUsed() !== $lastUsed) {
                $sessionInformation->refreshLastUsed($lastUsed);
                $this->saveSessionInformation($sessionInformation);
            }
        }
    }
public function refreshLastUsed($sessionId, $lastUsed = null)
    {
        if ($sessionInformation = $this->getSessionInformation($sessionId)) {
            if ($sessionInformation->getLastUsed() !== $lastUsed) {
                $sessionInformation->refreshLastUsed($lastUsed);
                $this->saveSessionInformation($sessionInformation);
            }
        }
    }
public function refreshLastUsed ( $ sessionId , $ lastUsed = null ) { if ( $ sessionInformation = $ this -> getSessionInformation ( $ sessionId ) ) { if ( $ sessionInformation -> getLastUsed ( ) !== $ lastUsed ) { $ sessionInformation -> refreshLastUsed ( $ lastUsed ) ; $ this -> saveSessionInformation ( $ sessionInformation ) ; } } }
Updates the given sessionId so its last request time is equal to the present date and time.

@param string   $sessionId the session identifier key.
@param int|null $lastUsed  the last request timestamp
Updates the given sessionId so its last request time is equal to the present date and time .