Do different browsers treat Sessions & Cookies differently?

From: Date: Sat, 13 Nov 2004 11:13:17 +0000
Subject: Do different browsers treat Sessions & Cookies differently?
Groups: php.general 
Request: Send a blank email to php-general+get-201901@lists.php.net to get a copy of this message
Hello I have two php files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstpage.php <? session_start(); $_SESSION['name']="test"; $_SESSION['value']="test"; echo session_id(); ?> <a href=secondpage.php>Next page</a>; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ secondpage.php <? session_start(); echo "<br>"; print_r($_COOKIE); echo "<br>"; echo session_id(); echo "<br>"; print_r($_SESSION); ?> <a href=firstpage.php>Previous page</a> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1st scenario : - Enable cookies. Traverse from first page to second page and back. The values are maintained in IE, Mozilla on windows & Mozilla in Debian Linux. 2nd scenario : - Disable cookies. Traverse from first page to second page and back. The values are maintained in IE but not in Mozilla in Windows & Linux I get a new session id everytime I refresh the page. Can anyone help me out with this? -- Warm Regards ~~~~~~~~~~~~ Vinayak

« previous php.general (#201901) next »