miteshpandey
June 20th, 2008, 04:44 AM
Hello all,
The problem is that my session variable dies in another page ...when I link from one page to another. I can access session variable in a.php but a.php -> has a link that takes you to b.php ...now in b.php I can't access that session variable
if(isset($_SESSION['username']))
{
print("What you want if the session var is set");
}
else
{
print("What you want if the sessions variable is not set");
}
It says username is not set ...
whereas I can access and has the correct value in a.php
Please help.
Thanks
The problem is that my session variable dies in another page ...when I link from one page to another. I can access session variable in a.php but a.php -> has a link that takes you to b.php ...now in b.php I can't access that session variable
if(isset($_SESSION['username']))
{
print("What you want if the session var is set");
}
else
{
print("What you want if the sessions variable is not set");
}
It says username is not set ...
whereas I can access and has the correct value in a.php
Please help.
Thanks