Search the web
Sign In
New User? Sign Up
in-phpug · Indian PHP User Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Session timeout   Message List  
Reply | Forward Message #3252 of 3262 |
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.

regards,
rohan

abhishek jain wrote:
>
>
>
> Hi,
> 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.
>
> --
> Regards,
> Abhishek jain
>
>




Tue Jun 30, 2009 1:27 pm

rohan_gnome
Offline Offline
Send Email Send Email

Forward
Message #3252 of 3262 |
Expand Messages Author Sort by Date

Hi, 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?...
abhishek jain
ejaincom
Online Now Send Email
Jun 30, 2009
12:12 pm

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....
Rohan Prabhu
rohan_gnome
Offline Send Email
Jun 30, 2009
3:25 pm

Hi, My server time is correct and set to IST. -- Regards, Abhishek jain ________________________________ From: Rohan Prabhu <rohan@...> To:...
abhishek jain
ejaincom
Online Now Send Email
Jul 2, 2009
9:06 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help