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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 #3253 of 3262 |
Re: [in-phpug] Session timeout

Hi,

My server time is correct and set to IST.
--
Regards,
Abhishek jain




________________________________
From: Rohan Prabhu <rohan@...>
To: in-phpug@yahoogroups.com
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.

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
>
>







[Non-text portions of this message have been removed]




Thu Jul 2, 2009 8:31 am

ejaincom
Offline Offline
Send Email Send Email

Forward
Message #3253 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
Offline 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
Offline Send Email
Jul 2, 2009
9:06 am
Advanced

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