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
Re: Question regarding session
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-handle r.php
for more information.
Nick
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
Re: Question regarding session
This is a multi-part message in MIME format.
------=_NextPart_000_011F_01C42DF8.30977C70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 p=
hp session managed by "user" [that's means you] then you must define a func=
tion [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 =3D files;
to
session.save_handler =3D 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
------=_NextPart_000_011F_01C42DF8.30977C70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.118" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Probably you wanted to do something if you=
changed
this var...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I didn't used this switch but you might ch=
eck
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].</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>And if you have no clue why did you change=
that var
than change it back and forget about it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Good luck</FONT></DIV>
<BLOCKQUOTE
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LE=
FT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>Fro=
m:</B>
<A title=3Dlud_nowhere_man [at] yahoo.com
href=3D"mailto:lud_nowhere_man [at] yahoo.com">Ludwig Lim</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dpgsql-php [at] postgresq=
l.org
href=3D"mailto:pgsql-php [at] postgresql.org">PostgreSQL Mailing List</A> </DI=
V>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, April 29, 2004
14:14</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [PHP] Question regarding=
session</DIV>
<DIV><BR></DIV>Hi:<BR><BR> I have a question regarding PHP
session<BR>I change the setting :<BR> <BR> =
session.save_handler =3D files;<BR>to <BR>
session.save_handler =3D user;<BR><BR>I got the following error message=
everytime run <BR>php (even If I tried it at command line)<BR><BR> &=
nbsp;
PHP Fatal Error: Unknown(): Failed to initialize<BR>session module in Unk=
nown
on line 0<BR><BR> Even if I tried it command line without
any<BR>argument, an error still occured.<BR> <BR><BR>PHP version :=
4.3.1<BR>O.S. : Mandrake
8.0<BR><BR>Thank you,<BR><BR>ludwig lim<BR><BR>ludwig =
<BR><BR><BR><BR><BR>__________________________________<BR>Do you
Yahoo!?<BR>Win a $20,000 Career Makeover at Yahoo! HotJobs <BR><A=
href=3D"http://hotjobs.sweepstakes.yahoo.com/careermakeover" >http://hotjo=
bs.sweepstakes.yahoo.com/careermakeover</A>
<BR><BR>---------------------------(end of
broadcast)---------------------------<BR>TIP 6: Have you searched our lis=
t
archives?<BR><BR> &n=
bsp;
<A
href=3D"http://archives.postgresql.org">http://archives.post gresql.org</A><=
/BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_011F_01C42DF8.30977C70--