Hello all,
Sorry if I have posted wrong or in wrong place, this is my first post.
I have a problem that occurrs intermittently :
session_start will occasionally hang, giving a white page, no error messages.
Using IE6, but problem also happens with Firefox.
I have made a test page and put it on http://www.planetaryvisions.com/sess.php
If you load it enough times (refreshing the page) it will hang.
There is also a phpinfo.php there, but can't see any clues to this problem.
The sess.php code is simple - very beginning it calls session_start, then a bit of html to display a simple message. I've tried just about everything I can think of. However, there is no problem running it on my localhost, just on the ISP's server, so I'm wondering if there is a setting that needs changing, and if the people here have any ideas. Any suggestions gratefully received, the problem is ruining our website.
Regards
Kevin
session_start hangs
Moderator: General Moderators
-
nowaydown1
- Forum Contributor
- Posts: 169
- Joined: Sun Apr 27, 2008 1:22 am
Re: session_start hangs
Are you doing anything special with your session handling (e.g. using a database or something else that isn't standard)? It took me about 75 page refreshes or so to get this to happen. If you aren't doing anything special with the session handler, I would try to describe your problem to your webhost and have them take a look. They have access to logs and such that could provide a better clue as to what's actually going on behind the scenes.
-
WebbieDave
- Forum Contributor
- Posts: 213
- Joined: Sun Jul 15, 2007 7:07 am
Re: session_start hangs
Are error messages being suppressed? Place this at the top of your script and see if an error message is generated, rather than just a blank page:
Code: Select all
ini_set('display_errors', 1);
error_reporting(E_ALL);
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: session_start hangs
White blank pages are usually syntax errors. Is there a chance that a session is getting interrupted before it can close itself because of a fault in the script somewhere else?