Submitted by Sheldon (not verified) on Wed, 08/22/2007 - 15:01.
How can I set a finite timeout on a PHP session? I want my users to be logged in for 60 minutes regardless of activity/inactivity. I'm toying around with maxlifetime etc, but every time a new page is visited, the session renews itself, thus never expiring. I am using server sessions only, with a defined save_path.
I'm presuming it's done using some kind of date comparison function.
How can I set a finite
How can I set a finite timeout on a PHP session? I want my users to be logged in for 60 minutes regardless of activity/inactivity. I'm toying around with maxlifetime etc, but every time a new page is visited, the session renews itself, thus never expiring. I am using server sessions only, with a defined save_path.
I'm presuming it's done using some kind of date comparison function.
Many thanks.