Re: Session Problem in IE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi make sure that session_start() will top on the page

plz start session at start and then include file

for session chk use 

if(isset($_SESSION['id' ]) && ''!=$_SESSION['id' ])
{
     echo "session set";
}
else
{
   echo "session not set";
}

--- On Wed, 29/7/09, kashi kashan <ksncool@xxxxxxxxx> wrote:

From: kashi kashan <ksncool@xxxxxxxxx>
Subject:  Session Problem in IE
To: php-objects@xxxxxxxxxxxxxxx, "kashan aziz" <kashan.aziz@xxxxxxxxx>
Date: Wednesday, 29 July, 2009, 11:58 PM






 




    
                  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]




 

      

    
    
	
	 
	
	








	


	
	


      Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux