Re: [PHP] RE: Session seams to be clearing randomly
Additionally, I forgot to mention that the session file is still viewable in the tmp directory after the session clears. David David Cramblett wrote: Hello, I am having trouble with my session clearing after a few clicks around the application. The session is started in a header which is loaded first on every page in my application and I can not isolate the clearing to one page or link, it seams to be random. I can click maybe 10 - 20 links, even back and forth between the same two links and then the session clears for no apparent reason. I use almost identical session handling and startup on many other applications on different servers, I only seem to have this problem on this particular server. PHP is running as an Apache module on a Linux/Intel server and my application uses a Postgres DB Back End. PHP is version 4.1.2. (Yes I would like to be using the most current version but this is not my server, so please don't suggest an update, unless you know that there was a problem with this in older versions of PHP that can be worked around.) Session Lifetime is set to 0 and Session Garbage Collection is set to 24 minutes in the php.ini file. Thanks, David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] RE: Session seams to be clearing randomly
I would bet money on the fact that one of your pages doesn't have a session start in it. Or there is a link which which requires resets the browser and initiates the creation of new session. I've had some problems before with javascript and top.window.location redirections that when set to http://site/file.php instead of just /file.php it resets the session. -Original Message- From: David Cramblett [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] RE: Session seams to be clearing randomly Additionally, I forgot to mention that the session file is still viewable in the tmp directory after the session clears. David David Cramblett wrote: Hello, I am having trouble with my session clearing after a few clicks around the application. The session is started in a header which is loaded first on every page in my application and I can not isolate the clearing to one page or link, it seams to be random. I can click maybe 10 - 20 links, even back and forth between the same two links and then the session clears for no apparent reason. I use almost identical session handling and startup on many other applications on different servers, I only seem to have this problem on this particular server. PHP is running as an Apache module on a Linux/Intel server and my application uses a Postgres DB Back End. PHP is version 4.1.2. (Yes I would like to be using the most current version but this is not my server, so please don't suggest an update, unless you know that there was a problem with this in older versions of PHP that can be worked around.) Session Lifetime is set to 0 and Session Garbage Collection is set to 24 minutes in the php.ini file. Thanks, David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: Re: [PHP] RE: Session seams to be clearing randomly]
David B, Thanks for suggestions, but this is a very basic app, again it has only three php scripts which it runs and all three load (include) the exact same header file which starts the session. Also, again, when clicking on the links, which basically just switch between the three php scripts, I can click the the same link over and over again (or back and forth between two links) and it works just fine (for 5-10 clicks for instance), then all of a sudden the next time it clears. There is no javascript being used in this application. Your notion of giving a complete url with a link or redirection sounded intriguing, unfortunately after a quick scan of my app they do not use the full url only file.php example. Thanks again, David -- David Cramblett Multnomah Education Service Dist. Network and Information Services 503-257-1535 fax 503-257-1538 David Buerer wrote: I would bet money on the fact that one of your pages doesn't have a session start in it. Or there is a link which which requires resets the browser and initiates the creation of new session. I've had some problems before with javascript and top.window.location redirections that when set to http://site/file.php instead of just /file.php it resets the session. -Original Message- From: David Cramblett [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] RE: Session seams to be clearing randomly Additionally, I forgot to mention that the session file is still viewable in the tmp directory after the session clears. David David Cramblett wrote: Hello, I am having trouble with my session clearing after a few clicks around the application. The session is started in a header which is loaded first on every page in my application and I can not isolate the clearing to one page or link, it seams to be random. I can click maybe 10 - 20 links, even back and forth between the same two links and then the session clears for no apparent reason. I use almost identical session handling and startup on many other applications on different servers, I only seem to have this problem on this particular server. PHP is running as an Apache module on a Linux/Intel server and my application uses a Postgres DB Back End. PHP is version 4.1.2. (Yes I would like to be using the most current version but this is not my server, so please don't suggest an update, unless you know that there was a problem with this in older versions of PHP that can be worked aro und.) Session Lifetime is set to 0 and Session Garbage Collection is set to 24 minutes in the php.ini file. Thanks, David -- David Cramblett Multnomah Education Service Dist. Network and Information Services 503-257-1535 fax 503-257-1538