[PHP] Sesion Vars get reseted

2002-12-05 Thread Miguel López Dinaweb Dpto. Programación
Hi,
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?


:-)

Miguel López Sánchez 
Programador
Voz +34 902 014 945    E-mail: [EMAIL PROTECTED] 

Dinaweb Networks s.l.
Rúa das Orfas 27
15703 Santiago de Compostela A Coruña Gz Sp ECC
Voz +34 902 014 945    GMT+1
E-mail: [EMAIL PROTECTED]

http://www.dinaweb.com   http://www.dinahosting.com
http://www.u-lo.com http://www.empregogalego.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sesion Vars get reseted

2002-12-05 Thread 1LT John W. Holmes
- 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...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Sesion Vars get reseted

2002-12-05 Thread Miguel López Dinaweb Dpto. Programación
I'm using php's built in functions, and i've made a very basic script
thats keeps reloading minute by minute and wen it was more than 24
minutes (1440 seconds) reloading in any moment the variables gets
reseted.
Also the last acced time from the file were the session data is stored
is updated every time that the page is reloaded, so the problen is that
i think that is making the garbage collection based on the creation time
no the last accesed time.

:-)

Miguel López Sánchez 
Programador
Voz +34 902 014 945    E-mail: [EMAIL PROTECTED] 

Dinaweb Networks s.l.
Rúa das Orfas 27
15703 Santiago de Compostela A Coruña Gz Sp ECC
Voz +34 902 014 945    GMT+1
E-mail: [EMAIL PROTECTED]

http://www.dinaweb.com   http://www.dinahosting.com
http://www.u-lo.com http://www.empregogalego.com


-Mensaje original-
De: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] 
Enviado el: jueves, 05 de diciembre de 2002 17:02
Para: Miguel López Dinaweb Dpto. Programación; [EMAIL PROTECTED]
Asunto: Re: [PHP] Sesion Vars get reseted


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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sesion Vars get reseted

2002-12-05 Thread 1LT John W. Holmes
What OS are you on?

---Quote---
Note: If you are using the default file-based session handler, your
filesystem must keep track of access times (atime). Windows FAT does not so
you will have to come up with another way to handle garbage collecting your
session if you are stuck with a FAT filesystem or any other fs where atime
tracking is not available.


---John Holmes...

- Original Message -
From: Miguel López Dinaweb Dpto. Programación [EMAIL PROTECTED]
To: '1LT John W. Holmes' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 11:41 AM
Subject: RE: [PHP] Sesion Vars get reseted


I'm using php's built in functions, and i've made a very basic script
thats keeps reloading minute by minute and wen it was more than 24
minutes (1440 seconds) reloading in any moment the variables gets
reseted.
Also the last acced time from the file were the session data is stored
is updated every time that the page is reloaded, so the problen is that
i think that is making the garbage collection based on the creation time
no the last accesed time.

:-)

Miguel López Sánchez
Programador
Voz +34 902 014 945 E-mail: [EMAIL PROTECTED]

Dinaweb Networks s.l.
Rúa das Orfas 27
15703 Santiago de Compostela A Coruña Gz Sp ECC
Voz +34 902 014 945 GMT+1
E-mail: [EMAIL PROTECTED]

http://www.dinaweb.com http://www.dinahosting.com
http://www.u-lo.com http://www.empregogalego.com


-Mensaje original-
De: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 05 de diciembre de 2002 17:02
Para: Miguel López Dinaweb Dpto. Programación; [EMAIL PROTECTED]
Asunto: Re: [PHP] Sesion Vars get reseted


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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php