Re: [in-phpug] Session timeout
My server time is correct and set to IST.
From: Rohan Prabhu <rohan@...>
Sent: Tuesday, June 30, 2009 6:57:05 PM
Subject: Re: [in-phpug] Session timeout
Check to see if your server time is correct and is set to UTC. Since PHP
Sessions are handled via cookies, they expire prematurely if a wrong
time is set. Since the time set for the cookie is an addend to the
current time, your current time must be set properly.
Also, check the php manual for how much time a session time is kept
alive. In the php.ini file, it is something like 'session_alive_ time' or
something.. not sure.. just lookup that one and set the time accordingly.
abhishek jain wrote:
>[Non-text portions of this message have been removed]
> My site abruptly at times closses session, ie the user logs out
> automatically even if he is refreshng and browsing the site,
> I do not know the reason why? as the time at times is less than 1 min
> and at times the time to logout is a hour, i know something is
> misconfigured but i do not know what?
> Also I need to have a checkbox like 'Remember me' ie keep the user
> logged in, i know something to do with cookies, but again manage
> session with cookies , how?
> Pl. help.
> Abhishek jain