Skip to content

Commit

Permalink
Removed Server Based Timeout cookie Servertime != Local time
Browse files Browse the repository at this point in the history
  • Loading branch information
NorHei committed Jun 16, 2017
1 parent f799389 commit 4e5fee6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions wbce/framework/wsession.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ public static function Start(){
if (!isset($_SESSION['session_started']))
$_SESSION['session_started'] = time();

//setcookie("WBCE_LastAccessTime", time());
$iExpire = time()+ WB_SESSION_TIMEOUT +1000;
$aDat= array("Time" => time(), "Timeout" => WB_SESSION_TIMEOUT);

$sDat=json_encode($aDat);
setcookie("WBCELastAccessTime", $sDat , $iExpire, "/", false, 0);

return false;
}
Expand Down

0 comments on commit 4e5fee6

Please sign in to comment.