[thelist] php session problems on meo

Lachlan Cannon luminosity at members.evolt.org
Sun Apr 28 20:43:01 CDT 2002


Seb said:
>
> Can we see the code, or at least the logic?
>
> Sessions are definitely enabled on meo, you can check this using <?
> phpinfo(); ?> (Create a script with only this function in it, then hit
> it in a browser.) You'll notice that session support is on, that
> auto-session-start is off, and the session identifier is PHPSESSID.
>
> 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...

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

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

Lach





More information about the thelist mailing list