Session Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jrmontg
Forum Newbie
Posts: 12
Joined: Mon Apr 05, 2004 9:59 am

Session Problem

Post by jrmontg »

I am not sure what is happening. I have a login page, once the user logs in, sessions are set. On the next page I have welcome <?php echo $_SESSION['Username']; ?>

It seems like half of the time the session is ok then half the time it is blank.

What may be causing this?

Thanks
jm
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

And you have session_start() on all pages that are trying to use session variables?
jrmontg
Forum Newbie
Posts: 12
Joined: Mon Apr 05, 2004 9:59 am

Post by jrmontg »

Yes it is there on the first line.
Post Reply