thanks joe and there is't problem of checking, as i told this code work in firefox,chorme. and i check again n again thn i got the actual problem, problem is that session does't carry on the other pages. Mein kaha rukta ho aarsh-o-farsh ki awaz se... Mujhe jana ha bohat oocha haad-e-paarwaz se --- On Wed, 7/29/09, Joe Forsythe <jforsythe@xxxxxxxxxxxxxxxxxx> wrote: From: Joe Forsythe <jforsythe@xxxxxxxxxxxxxxxxxx> Subject: Re: Session Problem in IE To: php-objects@xxxxxxxxxxxxxxx Date: Wednesday, July 29, 2009, 11:36 PM Use isset(). -- Joe On Jul 29, 2009, at 1:28 PM, kashi kashan wrote: > i have a problem in Sessions > > my code works in firefox,chorme but not in IE > > here is my code > > abc.php(session creat in this page) > ============ ========= ========= = > <?php > session_start( ); > //---------- --------some code-------- --------- ----- > > $_SESSION['id' ] = $user_id; > ?> > > > otherpage.php( retrive value from session) > ============ ========= ========= == > <?php > session_start( ); > $id = $_SESSION['id' ]; > if($id=="") > { > echo "Your Session has Expired"; > exit; > } > else > { > //---------some code > } > ?> > > in IE, session variable do't have a value. > > plz tell me efficient solution > > > thankssss > > Mein kaha rukta ho aarsh-o-farsh ki awaz se... > Mujhe jana ha bohat oocha haad-e-paarwaz se > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]