Topic: Session Timeout Auto Logout...
Hi Good Folks,
Sorry to bother about this, I just couldn't find the answer...
The Problem:
- User walks away from the workstation... session never times out
- User closes browser, comes back later... gets right in without login
The three solutions I have seen are:
- set this in the user's profile
...and then I did find this...
===========================
http://punbb.org/forums/viewtopic.php?pid=55287
Can i set cookie of punbb which expires after user .. closes the Internet Explorer Window .. ??.
One answer was...
In functions.php
Search for: (about Line 151)
setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.$password_hash))), $expire, $cookie_path, $cookie_domain, $cookie_secure);
and replace it with:
setcookie($cookie_name, serialize(array($user_id, md5($cookie_seed.$password_hash))), 0, $cookie_path, $cookie_domain, $cookie_secure);
---------------------------
Comment by dev'r: DO NOT DO THIS.. WILL NOT WORK....
Search for
$expire = $now + 31536000; // The cookie expires after a year
and replace with
$expire = 0; // The cookie expires when session ends
===================================
I tried these things but its not working.
What I wish to do is Globally Set the situation so after about a half hour, no ifs ands or buts, no matter how the user, even the admin, sets up their personal settings, no matter if they leave the browser open or not, ....if there is no activity for about a half hour I want that session to time out and require a log in to get back in.
How can I accomplish this?
I am still using 1.2.12 (or .15... cannot recall offhand, I just haven't had time to do the upgrades... so many mods to watch out for breaking something that isn't broken just now ;^) Just not enough time.
Best regards,
Rick / TwoHawks
Love is the Function
No Form is the Tool