Keep session active for auth purposes.
This commit is contained in:
parent
077f68754a
commit
4d6594071d
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
session_start();
|
||||
if (! isset($_SESSION['last_access']) || (time() - $_SESSION['last_access']) > 60) {
|
||||
$_SESSION['last_access'] = time();
|
||||
}
|
||||
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Pragma: cache");
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
session_start();
|
||||
if (! isset($_SESSION['last_access']) || (time() - $_SESSION['last_access']) > 60) {
|
||||
$_SESSION['last_access'] = time();
|
||||
}
|
||||
|
||||
$_SESSION['isframed'] = 1;
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
session_start();
|
||||
if (! isset($_SESSION['last_access']) || (time() - $_SESSION['last_access']) > 60) {
|
||||
$_SESSION['last_access'] = time();
|
||||
}
|
||||
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (120)) . " GMT");
|
||||
header("Cache-Control: max-age=120");
|
||||
header("Pragma: cache");
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
session_start();
|
||||
if (! isset($_SESSION['last_access']) || (time() - $_SESSION['last_access']) > 60) {
|
||||
$_SESSION['last_access'] = time();
|
||||
}
|
||||
|
||||
include "config.inc.php";
|
||||
$CONFIG = include ($config_file);
|
||||
$logfile = $logdir . '/post.log';
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
session_start();
|
||||
if (! isset($_SESSION['last_access']) || (time() - $_SESSION['last_access']) > 60) {
|
||||
$_SESSION['last_access'] = time();
|
||||
}
|
||||
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Pragma: cache");
|
||||
|
|
Loading…
Reference in New Issue