note 93603 added to function.session-start
| From: | bencollver at gmail dot com | Date: | Thu, 17 Sep 2009 21:34:25 +0000 |
| Subject: | note 93603 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160809@lists.php.net to get a copy of this message | ||
Here is a potential security problem where client requests can access the session variables of
others. Note: this is not a bug in PHP.
http://bugs.php.net/bug.php?id=38260
Here is the workaround.
session_start();
if (session_id() == 'deleted') {
session_regenerate_id(true);
}
----
Server IP: 64.71.164.2
Probable Submitter: 75.145.67.114
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/93603
Del: integrated -- https://master.php.net/note/delete/93603/integrated
Del: useless -- https://master.php.net/note/delete/93603/useless
Del: bad code -- https://master.php.net/note/delete/93603/bad+code
Del: spam -- https://master.php.net/note/delete/93603/spam
Del: non-english -- https://master.php.net/note/delete/93603/non-english
Del: in docs -- https://master.php.net/note/delete/93603/in+docs
Del: other reasons-- https://master.php.net/note/delete/93603
Reject -- https://master.php.net/note/reject/93603
Search -- https://master.php.net/manage/user-notes.php