Re: Trying again: Random(?) blank pages when using sessions
| From: | Matt Grimm | Date: | Mon, 19 Jan 2004 17:20:25 +0000 |
| Subject: | Re: Trying again: Random(?) blank pages when using sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175042@lists.php.net to get a copy of this message | ||
No, it's running on a FreeBSD server. I don't suppose it could have to do
with the firewall or browser security settings on my machine, though ...
could it? I can verify that the session file is being written to the
server's tmp directory... I'm stumped.
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: mgrimm@healthtvchannel.org
Web: www.healthtvchannel.org
<memoimyself@yahoo.com.br> wrote in message
news:400952A4.24904.D660AC@localhost...
> Matt,
>
> You're not by any chance using an Apache server on a machine that also has
a firewall,
> are you? I've had all sorts of mysterious session-related problems when
running scripts
> on my test server (Apache on Win2k with a ZoneAlarm firewall). Took me
*ages* to zero
> in on the source of the problem. Now whenever I need to test a script that
involves
> sessions, I simply disconnect from the internet and shut down my firewall.
>
> Cheers,
>
> Erik
>
>
> On 16 Jan 2004 at 16:32, Matt Grimm wrote:
>
> > Can anyone think of ways I can troubleshoot this problem? I still
haven't
> > found a solution.
> >
> > > I'm using non-cookie-based sessions for authentication on a page. The
> > > session is set like so, which works (these values, along with the SID,
are
> > > always retrievable):
> > >
> > > $_SESSION['user'] = $_POST['UserName'];
> > > $_SESSION['time'] = time();
> > >
> > > My problem is when I get to the protected site area, in which a header
> > > script calls session_start() at the top (first line). Seemingly
randomly,
> > > while navigating links within this area, I get blank white pages. If
I
> > > comment out the session_start() line, it doesn't happen. If I spit
out
> > the
> > > session variables in the resulting page, they are echoed, but that's
it --
> > > it's a blank white page otherwise.
> > >
> > > The apache error log is silent, and the access log is normal. No php
> > errors
> > > are displayed or written to the log. Here's the real kicker -- if I
> > refresh
> > > the page, it loads correctly. What is going on?
> > >
> > > Thank you,
> > > --
> > > Matt Grimm
> > > Web Developer
> > > The Health TV Channel, Inc.
> > > (a non - profit organization)
> > > 3820 Lake Otis Parkway
> > > Anchorage, AK 99508
> > > 907.770.6200 ext. 686
> > > 907.336.6205 (fax)
> > > E-mail: mgrimm@healthtvchannel.org
> > > Web: www.healthtvchannel.org
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php