Hi
I have built a website that requires a login is working just fine. I want a user to be able to login to the site in one browser but would also like them to have the ability to open a new browser and login from that one and create a new session and keep the two sessions separate and unique. I find that when I use Firefox to login and then bring up another firefox browser I am already logged in. If I try to log out and log back in, it destroys the session in the first browser as well.
I created a very simple test script to show the problem and test with it. The code is as follows:
<?php
// initialize a session
session_start();
// increment a session counter
$_SESSION['counter']++;
// print value
echo "You have viewed this page " . $_SESSION['counter'] . " times";
echo " I'm tracking you with session ID " . session_id();
?>
when I bring up this page in Firefox I get a session id and can increment the counter. I open a new firefox and it says that I have logged in say 5 times and the same session id as the first browser. When I try this same experiement in IE7, the second browser gets a new session id and counter. The way that IE7 is handling it seems to be the way that Firefox should. Does anyone know what I have to do to get Firefox to function the same way?
Also, I was hoping that the user could bring up a new tab in either Firefox or IE and get a new "session". It doesn't seem to treat a new tab as a new browser- does anyone know if that is possible?
Thanks for your help.
Allison