Hi,

I have an odd problem. I have intermittent loss of sessions happening, and
I've spent lots of time trying to figure it out, but I am at a loss here.

I found a post on phpbuilder that seem to be the same or a similar problem
from 2001:

http://www.phpbuilder.com/forum/archives/2/2001/3/1/125803

Unfortunately no conclusion seems to have been reached in the thread.

Anyway, to my problem.
I set a cookie with the sessionid on successful login. I also store the
sessionid in a mysql database with a timestamp. I check the cookie with the
db, and update on each reload.

The script resides in one page, that is used repeatedly, and uses the same
sessionhandling function for each request.

I have the timeouts set to 1 hour (3600) for both the sessioncookie, and the
session file on the server.

Php version is 4.1.2, residing on Gentoo Linux, with a mysql db.

I have observed the directory containing the sessionfiles, while a tester
browsed the site, and watched the session disappear from the directory
before timeout has elapsed.

It is an intermittent problem, and seem to happen randomly...

Any ideas what's going on here? Any hints would be greatly appreciated!

Regards
-Hans


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

Reply via email to