Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

Re: [PHP-DEV] Adding session save handler? From: derick <email protected>
Date: 12/19/01

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>