...

View Full Version : Sessions problem



Nightfire
07-09-2002, 05:47 PM
I'm having problems with sessions. How can you carry the session from page to page?

I've got this at the top of the login page:

session_start();
session_register('username');

and then on the page where the member can edit their info, I've got:

if(session_is_registered("username")=='') {
echo error;
} else {
page here
}

What am I doing wrong? It's always showing the "error", even after logging in. :(

Nightfire
07-09-2002, 05:49 PM
Oops, nevermind. I just noticed what I've done wrong.

Jeewhizz
07-09-2002, 07:23 PM
care to share?

Nightfire
07-09-2002, 07:26 PM
:o forgot to add

session_start();

to the top of the edit page



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum