Do different browsers treat Sessions & Cookies differently?

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

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux