[PHP-WIN] Question about Sessions!

2008-04-23 Thread Matthew Gonzales
From my understanding of session, the session will be destroyed if the browser is closed or the user initiates a command to destroy it. (a button "log out"). Is there a way to set a time variable on sessions. Say to 20 minutes of idle time or must a user log out? Matt G -- Matthew Gonzales IT

Re: [PHP-WIN] Question about Sessions!

2008-04-23 Thread Jarrett Meyer
http://us3.php.net/manual/en/ref.session.php When you create the session, add your own variable called $_SESSION["last_page_load_time"]. if ($_SESSION["last_page_load_time"] < time() - 20 * 60) { // don't time out, keep the session going... $_SESSION["last_page_load_time"] = ti

[PHP-WIN] Fwd: php-windows Digest 23 Apr 2008 16:49:27 -0000 Issue 3460

2008-04-23 Thread sandeep khokher
Sessions are stored on the server, so u can set the ur session time by using ini_set function of the php if the server setting allows u to do so. -- Forwarded message -- From: <[EMAIL PROTECTED]> Date: Thu, Apr 24, 2008 at 4:49 AM Subject: php-windows Digest 23 Apr 2008 16:49:27