projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbfc09
)
Allow at most 8h for the session
author
Joey Schulze
<joey@infodrom.org>
Sat, 21 Dec 2013 20:10:10 +0000
(21:10 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Sat, 21 Dec 2013 20:10:10 +0000
(21:10 +0100)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
6241918
..
d6caea7
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-8,8
+8,9
@@
$menu = menu();
$html = process();
$debug = debug_info();
+# max 8h
$gcml = ini_get('session.gc_maxlifetime');
-$refresh = $gcml < 8*60*60 ? $gcml
+ 60*60 : $gcml
;
+$refresh = $gcml < 8*60*60 ? $gcml
- 60 : 8*60*60 - 60
;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">