Re: session ?
| From: | Yasuo Ohgaki | Date: | Mon, 07 Jan 2002 03:55:18 +0000 |
| Subject: | Re: session ? | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-4282@lists.php.net to get a copy of this message | ||
Hellekin O. Wolf wrote:
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. hellekinCould you submit this as a bug? (I guess it's a serialize/unserialize problem) I don't have time to take a look at it, but others may have. -- Yasuo Ohgaki