note 92082 added to book.session
| From: | dlynx at yahoo dot com | Date: | Wed, 08 Jul 2009 04:11:37 +0000 |
| Subject: | note 92082 added to book.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158049@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 218.186.9.232 (proxied: 218.212.108.139)
----
Manual Page -- http://www.php.net/manual/en/book.session.php
Edit -- https://master.php.net/note/edit/92082
Del: integrated -- https://master.php.net/note/delete/92082/integrated
Del: useless -- https://master.php.net/note/delete/92082/useless
Del: bad code -- https://master.php.net/note/delete/92082/bad+code
Del: spam -- https://master.php.net/note/delete/92082/spam
Del: non-english -- https://master.php.net/note/delete/92082/non-english
Del: in docs -- https://master.php.net/note/delete/92082/in+docs
Del: other reasons-- https://master.php.net/note/delete/92082
Reject -- https://master.php.net/note/reject/92082
Search -- https://master.php.net/manage/user-notes.php