Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 23, 2004, 9:20 am
rate this thread
on the Logout button, the following is done
$db = new DB();
$result = new DB_query($db, "delete from $db_session where session_id =
// Unset all of the session variables.
// Finally, destroy the session.
The webserver is Apache 1.3.31 (Unix) on Linux (Kernel version
2.4.21-20.ELsmp) and PHP is version 4.3.9. I am wondering is there a way of
setting a "session timeout limit", so user would be forced to logon if they
leave their web-browser inactive for, say, 15minutes? Or would I have to
resort to adding a datecolumn to the session table in MySQL and compare the
time everytime a page is loaded?
Re: Session timeout
Im not an expert, and Ive never done this, but I think you can set the
session time out in the config file, or set it for your site if you do not
have access to it. But the session itself would have to be in a file not
mysql... if thats what you are doing.
Perhaps someone with much more knowhow than I can elaborate on this.
- » Retrieving full path of file on upload to php script
- — Previous thread in » PHP Scripting Forum