note 92082 deleted from book.session by danbrown

From: Date: Wed, 08 Jul 2009 15:27:26 +0000
Subject: note 92082 deleted from book.session by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158071@lists.php.net to get a copy of this message
Note Submitter: dlynx at yahoo dot com ---- If you need sessions to work with a MySQL backend (e.g. on shared hosts, where sessions files might be exposed), you could try to build a custom session handler, but that's quite... icky. There's also the problem of replacing the session capability for all other apps on the same php environment, and the assumption that you can configure the php.ini file (again, on a shared host this might be a problem). A simple alternative that works in "parallel" with the built-in sessions (i.e. $_SESSION) would be to use a library like: http://www.hotscripts.com/listing/msess-php-class/ Takes out much of the complexity and allows you to selectively apply the alternate handler per script rather than per server.

« previous php.notes (#158071) next »