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

From: Date: Tue, 02 Apr 2002 21:33:32 +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-3855@lists.php.net to get a copy of this message
ID: 16349 Updated by: adam@adeptsoftware.com Reported By: adam@adeptsoftware.com Status: Open -Bug Type: Session related +Bug Type: *General Issues Operating System: WinXP PHP Version: 4.1.2 New Comment: Is anybody looking at these? Moved from session category due to lack of response Previous Comments: ------------------------------------------------------------------------ [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 (#3855) next »