Closed
Bug 392860
Opened 17 years ago
Closed 16 years ago
Session is preserved across browser tab/windows
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
DUPLICATE
of bug 117222
People
(Reporter: mbbhat, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 I have a problem in PHP session handling. when I open my website in two or more tabs in Firefox, it is using the same session, so the another tab is just a copy of the previous tab. What i do in one will affect the another and vice-versa. Even if i open Firefox again, it will use the same session of the previous session. But that is not what I need mostly of time, specially when i want to copy information from one place to another in my web application. This problem does not exists in IE!! Please solve this problem as soon as possible. thank u bhat Reproducible: Always Steps to Reproduce: 1.first.php <?session_start(); $_SESSION['var1'] = rand(2,8); print("<html><body><form name='payonline' method='post' action='second.php'"); print("<input type='hidden' name='MD' value='P'>"); print("<input type='hidden' name='CG' value='Y'>"); print("<input type='submit' value='Pay Now!'>"); print("</form>"); print("</body></html>"); ?> second.php <?session_start(); print($_SESSION['var1']); ?> first open the first.php in one tab and click on submit button, the second.php file will display the value of var1 then open a new tab/window and access the first.php, again click on submit button will show the vale of 'var1'. Now if you reload the second.php in first tab u can see that the value has been changed to second tabs value.This is a big problem when doing some online transaction. 2. 3. Expected Results: unique sessions for each tabs/windows
Comment 1•17 years ago
|
||
I don't see where your code snippets here use cookies, but if so, this is likely bug 117222.
Comment 2•16 years ago
|
||
(In reply to comment #1) > I don't see where your code snippets here use cookies PHP uses cookies to determine, what set of values are needed for $_SESSION.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•