Req #27607 [Opn]: Determine if session data is available before running session_start()
| From: | yohgaki@php.net | Date: | Thu, 27 Jun 2013 09:26:05 +0000 |
| Subject: | Req #27607 [Opn]: Determine if session data is available before running session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179886@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=27607&edit=1
ID: 27607
Updated by: yohgaki@php.net
Reported by: victor@php.net
Summary: Determine if session data is available before
running session_start()
Status: Open
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
PHP Version: Irrelevant
-Assigned To:
+Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
If strict session patch is merged. It has function check session data
availability to check session id collision. This can be easily implemented with
it.
Previous Comments:
------------------------------------------------------------------------
[2004-03-15 10:21:09] victor@php.net
Description:
------------
Sometimes it is good to be able to determine if there is session data available before running
session_start(), but if there isn't, you don't want to start a session. A session takes
resources and giving a cookie to a user is in some cases something you only want to do if really
necessary. Here in Sweden we aren't allowed to use cookies without giving the user knowledge in
what we are storing in it.
so a session_is_available() or similar would be a good thing IMHO.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=27607&edit=1