protected function SessionProxy_Storage_Base::sessionDataHasChanged in Session Proxy 7
Does the session data has changed.
Parameters
string $sessionId:
string $serializedData:
2 calls to SessionProxy_Storage_Base::sessionDataHasChanged()
- SessionProxy_Storage_Cache::write in lib/
SessionProxy/ Storage/ Cache.php - SessionProxy_Storage_Database::write in lib/
SessionProxy/ Storage/ Database.php
File
- lib/
SessionProxy/ Storage/ Base.php, line 62
Class
Code
protected function sessionDataHasChanged($sessionId, $serializedData) {
global $user;
return $this->uidHasChanged || $this->lastReadSessionId != $sessionId || md5($serializedData) != $this->lastReadValueHash || REQUEST_TIME - $user->timestamp > variable_get('session_write_interval', 180);
}