Thanks for your reply. I'm brand new to php and I'm trying to troubleshoot
a session timeout problem, so my questions are probably simple... If I want
the session to last as long as the browser is open, do I put the following
line of code in ALL of my web pages?
ini_set("session.cookie_lifetime", "0");
Do I have to put this line before or after session_start();?
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:j4********************************@4ax.com...
On Wed, 19 Jan 2005 12:09:18 -0600, "jim" <in**@info.com> wrote:
Can I set the session timeout in my code? I don't have access to php.ini
because the site is on a shared server.
You don't need access to php.ini: http://uk.php.net/session notes that
all the session configuration variables are PHP_INI_ALL changeable, and links to
ini_set(), the function you can use to change them.
--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool