| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Cannot access $_SESSION varaibles on other pages|
I am facing problem in accessing $_SESSION variables..
I have three page
1. HTML form page that accepts a usre name
2. a php page that checks the valid user name and if valid user sets a session vaiable and redirects to next page msg.php
3. and here is the third page msg.php where i am trying to print the value stored in the $_SESSION variable
echo "Hello Mr/Mrs ".$_SESSION['uname'];
I cant make out whats wrong with this code..can any one help me out
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved