Bug #16349 Updated: no way to tell if a session exists without starting it

From: Date: Wed, 03 Apr 2002 16:47:04 +0000
Subject: Bug #16349 Updated: no way to tell if a session exists without starting it
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3935@lists.php.net to get a copy of this message
ID: 16349 Updated by: adam@adeptsoftware.com Reported By: adam@adeptsoftware.com -Status: Bogus +Status: Open Bug Type: Session related Operating System: WinXP PHP Version: 4.1.2 New Comment: This is a bug, or missing essential feature if you prefer. There is no question to ask, other than why has noone implemented this. Previous Comments: ------------------------------------------------------------------------ [2002-04-03 08:29:49] sniper@php.net This is still session related. Ask on php-general@lists.php.net as this is not bug. The PHP manual also has lot information about how sessions are supposed to be used. ------------------------------------------------------------------------ [2002-04-02 16:33:31] adam@adeptsoftware.com Is anybody looking at these? Moved from session category due to lack of response ------------------------------------------------------------------------ [2002-03-29 13:25:38] adam@adeptsoftware.com There is no way, that I can see, of knowing if a session exists before starting it. I am trying to destroy a session, but only if it already exists. If it doesn't, I basically have to create it then destroy it. The problem, besides this being lame, is the browser can pop up a box asking the user if they want to accept a session cookie, when I am not even trying to start a session. It might be better if session_destroy just didn't require the session to be started. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16349&edit=1

« previous php.bugs (#3935) next »