Commit 27fe0b35fd5c4974024d0bcc162a3690a114a5f9
1 parent
5f8331c9
Set $default->sessionTimeout to 1200 if detected it is empty. Solves session iss…
…ue when logging in for the first time.
Showing
1 changed file
with
1 additions
and
0 deletions
lib/session/Session.inc
| @@ -283,6 +283,7 @@ class Session { | @@ -283,6 +283,7 @@ class Session { | ||
| 283 | // now check if the timeout has been exceeded | 283 | // now check if the timeout has been exceeded |
| 284 | $lastused = $aRow["lastused"]; | 284 | $lastused = $aRow["lastused"]; |
| 285 | $diff = time() - strtotime($lastused); | 285 | $diff = time() - strtotime($lastused); |
| 286 | + if($default->sessionTimeout<=0)$default->sessionTimeout=1200; | ||
| 286 | if($diff <= $default->sessionTimeout) { | 287 | if($diff <= $default->sessionTimeout) { |
| 287 | // update last used timestamp | 288 | // update last used timestamp |
| 288 | $aFV = array( | 289 | $aFV = array( |