NYCPHP Meetup

NYPHP.org

[nycphp-talk] Session timing out

Kristina Anderson ka at kacomputerconsulting.com
Wed Dec 30 20:19:40 EST 2009



> This is a multi-part message in MIME format.
> 
> 
> I inherited a project where the login code had already been written.
> 
>  
> 
> The client asked me to stop the login from timing out the client and login
> them out.
> 
>  
> 
> When I looked at the code, I didn't see anything that was calculating time
> logged in.
> 
>  
> 
> It seems the system is automatically clearing the session variables.
> 
>  
> 
> So, I took a look at the php.ini file.  I thought the right variable
to set
> would be:
> 
>  
> 
> session.cache_expire
> 
>  
> 
> But, that doesn't seem to be it.
> 
>  
> 
> Does anyone know how to keep the session from clearing?
> 
>  
> 
> Michele
> 
>  
> 
> 
> 

Good reference material that explains session length and how to override
defaults:

http://www.captain.at/howto-php-sessions.php

Kristina





More information about the talk mailing list