By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,285 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,285 IT Pros & Developers. It's quick & easy.

Unable to access session values/variables

P: 28
This is my first page named test.php, In this page iam assigning the value to the session variable username,and I could able to access that value in this page.

But when I access the same session variable in the next page named test1.php, the value of the session seems to be empty.

Iam using PHP Version 4.3.10

echo $_SESSION["username"]."**";

<form name="frm1" action="test1.php" method="post">
<input type="Hidden" name="name" value="testing">
<input type="Submit" name="s1" value="submit">


echo "sess=".$_SESSION["username"];
Sep 21 '06 #1
Share this Question
Share on Google+
2 Replies

P: 2
Hello Raja~

Your code have not any problem~ maybe your php.ini config problem !
Sep 21 '06 #2

P: 28
can you tell what will be the problem in the php.ini.

that will be very gratefull
Sep 21 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.