Bug #54534 [Wfx]: Sessions fail when running PHP as multiple users
| From: | srinatar@php.net | Date: | Wed, 20 Apr 2011 01:10:17 +0000 |
| Subject: | Bug #54534 [Wfx]: Sessions fail when running PHP as multiple users | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160297@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54534&edit=1
ID: 54534
Updated by: srinatar@php.net
Reported by: fredrik at dolda2000 dot com
Summary: Sessions fail when running PHP as multiple users
Status: Wont fix
Type: Bug
Package: Session related
Operating System: Debian
PHP Version: trunk-SVN-2011-04-14 (snap)
Block user comment: N
Private report: N
New Comment:
Honestly, I don't think this is a corner case. Also considering that the
submitter has filed the bug against trunk - should we not give a due
consideration to see if this can be addressed ?
IMO, closing a bug in haste will only cause couple of duplicate bugs to
be opened on the very same subject causing overhead for both the bug
submitter as well as for the evaluators.
Moving it to a feedback status allows an opportunity for the bug
submitter to explain further providing a chance for every one to make a
right decision on a given issue. - Just my 2c thought..
Previous Comments:
------------------------------------------------------------------------
[2011-04-19 08:31:04] aharvey@php.net
You can already handle this corner case with a custom session handler. I
don't think it's a common enough problem in practice to justify changing
the long-standing behaviour of PHP's default session handler.
------------------------------------------------------------------------
[2011-04-14 16:29:48] fredrik at dolda2000 dot com
Description:
------------
I'm running a website on which PHP runs as multiple different users on
the
operating system, and I'm encountering problems when a visitor to the
site goes
from a part where PHP runs as one user to another part where PHP runs as
another
user.
Since PHP saves all sessions in one directory, it will attempt to load
the same
session data as long as the visitor uses the same SID. When the session
was
created by one user, it cannot be loaded by another. That is of course,
in
itself, as it should.
I would argue, however, that the session filenames should contain the
UID of the
user running PHP, so as to remove such conflicts. The resultant behavior
is
probably reasonable, as the different users running PHP will most likely
not want
to share session data with each other.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54534&edit=1