From: Nick Barr <nicky@chuckie.co.uk>
To: Ludwig Lim <lud_nowhere_man@yahoo.com>
Cc: PostgreSQL Mailing List <pgsql-php@postgresql.org>
Subject: Re: Question regarding session
Date: Thu, 29 Apr 2004 12:30:38 +0100
Message-ID: <4090E75E.6060206@chuckie.co.uk> (raw)
In-Reply-To: <20040429111436.62957.qmail@web90006.mail.scd.yahoo.com>
References: <20040429111436.62957.qmail@web90006.mail.scd.yahoo.com>
Ludwig Lim wrote:
>Hi:
>
> I have a question regarding PHP session
>I change the setting :
>
> session.save_handler = files;
>to
> session.save_handler = user;
>
>I got the following error message everytime run
>php (even If I tried it at command line)
>
> PHP Fatal Error: Unknown(): Failed to initialize
>session module in Unknown on line 0
>
> Even if I tried it command line without any
>argument, an error still occured.
>
>
>PHP version : 4.3.1
>O.S. : Mandrake 8.0
>
>Thank you,
>
>ludwig lim
>
>ludwig
>
>
>
This is a bit OT for Postgres. However do you not need to set the
session handlers because you have kicked php session into user mode. You
need to call session_set_save_handler with a list of strings which match
functions. These functions then open, close, read, write, destroy and do
garbage collection stuff on the session stuff. See:
http://uk.php.net/manual/en/function.session-set-save-handler.php
for more information.
Nick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: nicky@chuckie.co.uk, lud_nowhere_man@yahoo.com
Subject: Re: Question regarding session
In-Reply-To: <4090E75E.6060206@chuckie.co.uk>
References: <20040429111436.62957.qmail@web90006.mail.scd.yahoo.com> <4090E75E.6060206@chuckie.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox