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

From: Date: Fri, 29 Mar 2002 18:25:38 +0000
Subject: Bug #16349: no way to tell if a session exists without starting it
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3621@lists.php.net to get a copy of this message
From: adam@adeptsoftware.com Operating system: WinXP PHP version: 4.1.2 PHP Bug Type: Session related Bug description: no way to tell if a session exists without starting it 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 bug report at http://bugs.php.net/?id=16349&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16349&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16349&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16349&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16349&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16349&r=support Expected behavior: http://bugs.php.net/fix.php?id=16349&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16349&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16349&r=submittedtwice

« previous php.bugs (#3621) next »