Re: Sesion Vars get reseted
| From: | 1LT John W. Holmes | Date: | Thu, 05 Dec 2002 16:01:54 +0000 |
| Subject: | Re: Sesion Vars get reseted | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127164@lists.php.net to get a copy of this message | ||
----- Original Message -----
I'm having a trouble with session vars, that i suspect that is related
to garbage collection system.
I start a session and make and continuos use of it, but sudently the
session vars are reseted, the time when this ocurs is variable, always
after passing the time of garbage recollection since the session was
started, but less than a minute from the last use of the session, is
this the correct way for php session handling or can be any error in the
scripts or the php config?
-----------------------------
If you're not using your own session handling functions, garbage collection
won't touch the file if it's been accessed in the last 1440 seconds (I think
that's the default).
What if you write a really basic session page and keep loading it? Do the
variables dissappear from that, also? I'm sure it's something in the code
you've written, as normal session operations wouldn't do this.
---John Holmes...