Jean-Christophe Roux wrote:
I have folder A with the following php script:
<?php
session_start();
$_SESSION['dummy']=10;
echo $_SESSION['dummy'];
?>
in folder B (same level as A), there is
<?php
session_start();
echo $_SESSION['dummy'];
?>
when running the script in B, in can see the value 10. How can I make sure that 
the $_SESSION['dummy'] is not shared between the two scripts? I could change 
the name but that would not be convenient.

You'll have to change the name. The whole point of sessions is to allow scripts to share variables between requests.

-Stut

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

Reply via email to