Nightfire
07-09-2002, 04: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. :(
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. :(