php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #27607 Determine if session data is available before running session_start()
Submitted: 2004-03-15 10:21 UTC Modified: 2013-10-15 11:54 UTC
From: victor@php.net Assigned: yohgaki (profile)
Status: No Feedback Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-03-15 10:21 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-27 09:26 UTC] yohgaki@php.net
-Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: yohgaki
 [2013-06-27 09:26 UTC] 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.
 [2013-08-07 08:59 UTC] yohgaki@php.net
-Status: Assigned +Status: Feedback
 [2013-08-07 08:59 UTC] yohgaki@php.net
W/o strict session patch, this would be useful. With strict session patch, I 
cannot imagine use cases. Could you give some?
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 18:04:14 2021 UTC