Sessions & MySQL again.

From: Date: Fri, 21 Jan 2000 13:42:28 +0000
Subject: Sessions & MySQL again.
Groups: php.version4 
Request: Send a blank email to php-version4+get-9335@lists.php.net to get a copy of this message
I discovered an oddity in the session->MySQL thingie (or if it is in session_set_save_handler). I need to do something like this, before I start the "real" session: require("session.php"); session_start(); session_register("dummy"); $dummy=0; $dummy++; This lets the 'write' handler have some time to initialize whatever is going in to the db. If I remove the above, nothing works. It's all very unstable, so I wouldn't suggest using it in it's current form in any production type environment. Anyway, the script I used is attached. Have fun. Regards, Kenneth Mutka

Attachment: [application/octet-stream] session.php
« previous php.version4 (#9335) next »