PDA

View Full Version : $_session


wortmann
07-22-2011, 08:39 PM
I'm trying to use the login name variable in different pages.
However it doesn't seem to work. I'm using the $_SESSION() (vote-ireland.com) as in page login_new.php. I then like to use the variable stored in $loginUsername in different pages (seam.php and redirect1.php)but somehow it doesn't seem to work. No error message. So the only thing i can think of is that the initial variable is empty... user: koos pw: voos in case u want to have a look

edbr
07-23-2011, 12:53 AM
do you have session start at the top of these pages?

wortmann
07-23-2011, 01:04 PM
I have it on the first page. Where my variable is. Do i need to have it on all pages where i'm going to use the session var?

edbr
07-23-2011, 11:32 PM
yes thats needed to acknowlede them

wortmann
07-24-2011, 11:49 PM
thanks for that. had it figured out but failed to close the ticket. thanks again