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" <andy@andyh.co.uk> wrote in message
news:j4etu0ppaudl8qds46f41jct6dunttslpl@4ax.com...[color=blue]
> On Wed, 19 Jan 2005 12:09:18 -0600, "jim" <info@info.com> wrote:
>[color=green]
> >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.[/color]
>
> You don't need access to php.ini:
http://uk.php.net/session notes that[/color]
all the[color=blue]
> session configuration variables are PHP_INI_ALL changeable, and links to
> ini_set(), the function you can use to change them.
>
> --
> Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool[/color]