Jump to content

[SOLVED] logging only for so long


runnerjp

Recommended Posts

Sessions do expire, the lifetime is set in the php.ini file.  Try adding this to your script right before you start the sessions, if it doesn't work you'll need to edit your php.ini file.

 

<?php
ini_set('session.cookie_lifetime', 0);
ini_set('session.cache_expire', 0);

session_start();
header("Cache-control: private");
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.