Edit report at https://bugs.php.net/bug.php?id=27607&edit=1
ID: 27607 Updated by: yohg...@php.net Reported by: vic...@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] yohg...@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] vic...@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