Req #27607 [Asn->Fbk]: Determine if session data is available before running session_start()
| From: | yohgaki@php.net | Date: | Wed, 07 Aug 2013 08:59:56 +0000 |
| Subject: | Req #27607 [Asn->Fbk]: Determine if session data is available before running session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180771@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: Assigned
+Status: Feedback
Type: Feature/Change Request
Package: *General Issues
PHP Version: Irrelevant
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
W/o strict session patch, this would be useful. With strict session patch, I
cannot imagine use cases. Could you give some?
Previous Comments:
------------------------------------------------------------------------
[2013-06-27 09:26:05] yohgaki@php.net
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.
------------------------------------------------------------------------
[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