Bug #17598: no way to detect a session without creating a session
| From: | adam at adeptsoftware dot com | Date: | Tue, 04 Jun 2002 16:40:50 +0000 |
| Subject: | Bug #17598: no way to detect a session without creating a session | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9479@lists.php.net to get a copy of this message | ||
From: adam@adeptsoftware.com
Operating system: WinXP
PHP version: 4.2.1
PHP Bug Type: Session related
Bug description: no way to detect a session without creating a session
There is no way to detect if a session exists, without creating a session.
This can trigger warnings like this in cookie detectors:
This page wishes to set the cookie
PHPSESSID="bd977b12c9da97f1ba0b07e4fe25a176"
A page needs to generate differently based on whether a user is "logged
in" (a session exists) or just a "visitor".
You shouldn't have to create a session to know if it exists. I suppose
you could manually check cookies & the URL etc but shouldn't there be a
function for this?
--
Edit bug report at http://bugs.php.net/?id=17598&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17598&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17598&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17598&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17598&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17598&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17598&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17598&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17598&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17598&r=globals