session ?
| From: | Hellekin O. Wolf | Date: | Sun, 06 Jan 2002 11:42:05 +0000 |
| Subject: | session ? | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-4281@lists.php.net to get a copy of this message | ||
Hello,
I've been working with sessions all day and found some strange behaviors.
With 4.1.0 I couldn't register and pass objects, so after a while I
upgraded to 4.2.0-dev.
Same problem.
I wrote a user handler using MySQL and almost solved the problem but here I
bumped into another problem : __sleep() and __wakeup() would trash my
session data : count, instead of a simple int, turns into $PHPSESSID.
If I *add* another class (B) without the __* functions, B works OK but the
other one doesn't. The rest of the session vars work normally.
RHAAAAAAAAAAAAAAAAAAAAAAAAAA =8\
The testing requires 4.1.0 and 4.2.0_dev + a simple file setting up two
classes and count.
One of the class must use __* functions.
Also, when I wrote the MySQL session handler I had many problems making it
work. Under 4.1.0 it just keeps adding new sessions. Under 4.2.0_dev, it
works fine with different files. Reloading the file keeps adding new sessions.
Either I do not know how to handle sessions and then I pledge for help, or
there is something rotten.
hellekin