Re: Custom session handling - bad or good idea?
| From: | Jason Barnett | Date: | Thu, 18 Aug 2005 20:53:49 +0000 |
| Subject: | Re: Custom session handling - bad or good idea? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220897@lists.php.net to get a copy of this message | ||
This can be a fine way to go, given that you have a specific reason to
do so that is not easily handled by using session_set_save_handler.
The most common session handler in use (besides the default handler)
is a DB session handler. You could write this handler in C and it
would possibly be worth the effort. Caching DB connections in a
shared module could give you a nice performance boost (although I have
no idea how stable a setup like that would be, usual caveats about
multi-threaded servers would apply).
Hope this helps.
On 8/18/05, GamblerZG <gambler@highstream.net> wrote:
> I'm not speaking about "session_set_save_handler", I'm considering
> writing session handler from scratch. Is it a bad idea? If so, why?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>