Page 1 of 1

Session lost problem

Posted: Mon Nov 29, 2010 8:38 am
by suraj
Please help me........


i have a problem with session

i use session in my site to authenticate user.but the problem is that i get session value in all pages except one page.

In this page some time session occurs but some times not.i am so confused

this is my code to store session from previous page.


<?php session_start();
$linuser=$_SESSION['linuser'];
$luser=$_SESSION['luser'];
$cuser= $_SESSION['cuser'];
$iuser=$_SESSION['iuser'];
if((isset($cuser))||(isset($luser))||(isset($linuser))||(isset($iuser)))
{
echo "description";
}else
{
$msg="Please registered first";
}
?>


but when i press back button of browser.these variable are filled in previous page.

I got this problem only in this page.

i already specified that sometimes these variable has value but sometimes not.....

i also define another session is same to store url..
like
$_session['url']="www.google.com";
it has value but above is not shown..............


any help is appreciated......

Re: Session lost problem

Posted: Tue Nov 30, 2010 1:45 am
by social_experiment
suraj wrote:...except one page
What is the code for this page?