Re: Adding session save handler?
| From: | derick@php.net | Date: | Wed, 19 Dec 2001 08:02:01 +0000 |
| Subject: | Re: Adding session save handler? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74346@lists.php.net to get a copy of this message | ||
Hello Yasuo,
On Wed, 19 Dec 2001, Yasuo Ohgaki wrote:
> Currently I have ps_modules entry like like for pgsql save handler.
>
> static ps_module *ps_modules[MAX_MODULES + 1] = {
> ps_files_ptr,
> ps_user_ptr,
> ps_pgsql_ptr
> };
>
> It works, but I guess it's not the right way to do.
> What is the right way for adding session save handler?
> Or is it ok?
You can call this from your MINIT function (of the extension):
php_session_register_module(&ps_mod_srm);
Furthermore, I don't think you should add this function as a built-in
session handler, but make it an extension for the PECL repository in
PEAR.
regards,
Derick