php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46394 Sessions & multipe tabs or instances of a web browser
Submitted: 2008-10-26 15:39 UTC Modified: 2008-10-27 10:31 UTC
From: master_chriso at yahoo dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.6 OS: Windows Vista
Private report: No CVE-ID: None
 [2008-10-26 15:39 UTC] master_chriso at yahoo dot com
Description:
------------
I'm developing 2 different php programs simultaneously both using php session. I notice that both are sharing and overriding the same session variables. The worst thing happens is when I close one of the app, it will destroy the contents for the other app.

Is there a way to keep php from sharing the session on multiple tabs or instances of the same web browser?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 15:51 UTC] mater_chriso at yahoo dot com
but when i open the two simultaneusly on different web browsers they use different sessions as expected.

Is it possible for php to detect and create a separate session for each tab/instance of the web browser?
 [2008-10-27 10:31 UTC] lbarnaud@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

One of the possible solutions is to change the session save path (ini_set("session.save_path", "...")).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 01:01:32 2024 UTC