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

Reply via email to