pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedQuestion regarding session
3+ messages / 3 participants
[nested] [flat]
* Question regarding session
@ 2004-04-29 11:14 Ludwig Lim <lud_nowhere_man@yahoo.com>
0 siblings, 2 replies; 3+ messages in thread
From: Ludwig Lim @ 2004-04-29 11:14 UTC (permalink / raw)
To: pgsql-php
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
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Question regarding session
@ 2004-04-29 11:30 Nick Barr <nicky@chuckie.co.uk>
parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Nick Barr @ 2004-04-29 11:30 UTC (permalink / raw)
To: Ludwig Lim <lud_nowhere_man@yahoo.com>; +Cc: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Question regarding session
@ 2004-04-29 11:42 Viorel Dragomir <bc@vio.ro>
parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Viorel Dragomir @ 2004-04-29 11:42 UTC (permalink / raw)
To: Ludwig Lim <lud_nowhere_man@yahoo.com>; pgsql-php
Probably you wanted to do something if you changed this var...
I didn't used this switch but you might check php.net because if you want php session managed by "user" [that's means you] then you must define a function [or more - to save and load session vars].
And if you have no clue why did you change that var than change it back and forget about it.
Good luck
----- Original Message -----
From: Ludwig Lim
To: PostgreSQL Mailing List
Sent: Thursday, April 29, 2004 14:14
Subject: [PHP] Question regarding session
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
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-04-29 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-29 11:14 Question regarding session Ludwig Lim <lud_nowhere_man@yahoo.com>
2004-04-29 11:30 ` Nick Barr <nicky@chuckie.co.uk>
2004-04-29 11:42 ` Viorel Dragomir <bc@vio.ro>
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