Bug #17848: Session stored in db doesn't show up until data is stored with it
| From: | fabian at ahrberg dot se | Date: | Wed, 19 Jun 2002 18:13:37 +0000 |
| Subject: | Bug #17848: Session stored in db doesn't show up until data is stored with it | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11439@lists.php.net to get a copy of this message | ||
From: fabian@ahrberg.se
Operating system: Linux 2.4 kernel
PHP version: 4.2.1
PHP Bug Type: Session related
Bug description: Session stored in db doesn't show up until data is stored with it
I used to store sessions in mysql as it made it easy for me to jsut count
the rows to find out how many sessions that were being used at a time.
Since I also stored whether a session was "logged in" or not it made it
very easy to make realtime stats such as:
95 visitors, 65 logged in
When I upgraded to 4.1.x, I'm not sure it could be 4.0.2 or something like
that it suddenly stopped working. When I looked into it I found out that
the sessions started but with no variables written to them never showed up
in my session table which is REALLY annoying as I no longer can get the
stats out as easily as before.
Someone told me it's a feature not to store the empty sessions, according
to me it's a problem. Maybe a flag with the session_start could be used?
So the feature wanting can keep it as it is right now and I can store my
empty sessions?
Somewhat bothered... ;)
--
Edit bug report at http://bugs.php.net/?id=17848&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17848&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17848&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17848&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17848&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17848&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17848&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17848&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17848&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17848&r=globals