Index: trunk/core/kernel/session/session.php =================================================================== diff -u -r3156 -r3282 --- trunk/core/kernel/session/session.php (.../session.php) (revision 3156) +++ trunk/core/kernel/session/session.php (.../session.php) (revision 3282) @@ -188,7 +188,7 @@ function GetExpiredSIDs() { - $query = ' SELECT '.$this->IDField.' FROM '.$this->TableName.' WHERE '.$this->TimestampField.' > '.time(); + $query = ' SELECT '.$this->IDField.' FROM '.$this->TableName.' WHERE '.$this->TimestampField.' > '.adodb_mktime(); return $this->Conn->GetCol($query); } @@ -392,7 +392,7 @@ setcookie( 'cookies_on', 1, - time()+31104000, //one year should be enough + adodb_mktime()+31104000, //one year should be enough $this->CookiePath, $this->CookieDomain, $this->CookieSecure @@ -432,7 +432,7 @@ $this->Expiration = $this->Storage->GetExpiration(); //If session has expired - if ($this->Expiration < time()) return false; + if ($this->Expiration < adodb_mktime()) return false; //Otherwise it's ok return true; @@ -534,7 +534,7 @@ function SetSession() { $this->GenerateSID(); - $this->Expiration = time() + $this->SessionTimeout; + $this->Expiration = adodb_mktime() + $this->SessionTimeout; switch ($this->Mode) { case smAUTO: if ($this->CookiesEnabled) {