Hi Torsten, That is a wonderful insight!!! :o) thanxxx!
okie, my 'session.gc_maxlifetime' = 1440 and session.gc_probability = 1. so, should I change it to something like 43,200 (12hours*60mins*60sec)?? for example, one person works a maximun of 12 hours a day. But does it mean that by lengthening this value, the session will still be kept even if the user closes his browser?? Please advice! looking forward to solving this!! many thanks, Hwee ----- Original Message ----- From: "Torsten Roehr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 27, 2004 6:07 PM Subject: Re: [PHP-DB] Session > "Ng Hwee Hwee" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > thanx Mike, > > > > i'm sure i have session_start() on all my pages. Why I'm so confident is > > because my session gets unset occassionally and not everytime. i cannot > find > > a pattern and so it is not a consistent problem.. it's so unpredictable! > > what could be the problem?? > > Take alook at this option: > > ini_set('session.gc_maxlifetime', 3600); // 3600 seconds > > If you don't set it the standard value is 1440 seconds, then your session > data is deleted based on the garbage probablility. Take a look here: > > http://de3.php.net/session > > Look out for "session.gc_maxlifetime" and "session.gc_probability". > > Regards, Torsten > > > > > > ----- Original Message ----- > > From: "Mikael Grön" <[EMAIL PROTECTED]> > > To: "Ng Hwee Hwee" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Tuesday, April 27, 2004 3:54 PM > > Subject: Re: [PHP-DB] Session > > > > > > > Session objects has nothing to do with weak network connections. > > > If your sessions gets un-set, it's most probably because you forgot the > > > > > > session_start(); > > > > > > command in the beginning of some file that is using sessions. Without > > > that line, no sessions will be neither stored nor read. > > > > > > Mike > > > > > > > > > On Apr 27, 2004, at 07:46, Ng Hwee Hwee wrote: > > > > > > > Hi, > > > > > > > > I have a problem with my session variables. I set them using for e.g., > > > > $_SESSION["user"]=$name; > > > > > > > > However, because of weak network links, somehow my $_SESSION variables > > > > get unset. Is there a way to still keep the session variables even > > > > though the network is unstable?? i.e. as long as my browser is open, > > > > is there a way to still store my session variables? by the way, i'm > > > > not referring to the session ids, I'm referring to the variables that > > > > i wanted to session_register(). > > > > > > > > Thank you. > > > > > > > > Regards, > > > > Hwee