[thelist] php session problems on meo

Nick Wilson nick at explodingnet.com
Mon Apr 29 11:36:01 CDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


* and then Lachlan Cannon declared....
> > Are there any includes before the session start? Do they have any
> > whitespace at the top or bottom at all?
> >
> > Can you give us a little more information to guess with?
>
> There are includes, none of them have any whitespace.
> The code for the whole blog is on the one page. When I
> go to the admin page, if I'm not logged in, and not trying
> to, it takes me to the login page. I login- it checks my
> password, correctly. then it's supposed to start a session.
>
> session_start();
> session_register('blogin');
> set blogin value etc...

And all this session stuff is at the top of the document?

> But it fails to start the session, so when I go to the admin page
> it brings me back to the login page again.

Certainly not ideal.

> I'm not getting any errors reported to me from the php script.
> (It does print them onscreen if it has them, correct?)

Should do, stick some text in the script and run it, should pring a
parse error to the screen.

If you like, send me the script offlist and I'll have a look for you.
I'm no expert but I may spot something you're overlooking...
- --
Nick Wilson     //  www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8zXchHpvrrTa6L5oRAm8HAJ0VTmYkDzdL8Zpehel6vM37X/DeBQCeLATU
dVxhrdU6GMFbqPT/wTeC7+8=
=ooJr
-----END PGP SIGNATURE-----



More information about the thelist mailing list