Re: Question regarding session

Поиск
Список
Период
Сортировка
От Nick Barr
Тема Re: Question regarding session
Дата
Msg-id 4090E75E.6060206@chuckie.co.uk
обсуждение исходный текст
Ответ на Question regarding session  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Список pgsql-php
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




В списке pgsql-php по дате отправления:

Предыдущее
От: Ludwig Lim
Дата:
Сообщение: Question regarding session
Следующее
От: "Viorel Dragomir"
Дата:
Сообщение: Re: Question regarding session