Question regarding session

Question regarding session

am 29.04.2004 13:14:36 von Ludwig Lim

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

am 29.04.2004 13:30:38 von Nick Barr

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

am 29.04.2004 13:42:26 von Viorel Dragomir

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 -----=20
From: Ludwig Lim=20
To: PostgreSQL Mailing List=20
Sent: Thursday, April 29, 2004 14:14
Subject: [PHP] Question regarding session


Hi:

I have a question regarding PHP session
I change the setting :
=20
session.save_handler =3D files;
to=20
session.save_handler =3D user;

I got the following error message everytime run=20
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=20

---------------------------(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








Probably you wanted to do something if you=
changed=20
this var...

I didn't used this switch but you might ch=
eck=20
php.net because if you want php session managed by "user" [that's means you=
]=20
then you must define a function [or more - to save and load session=20
vars].

 

And if you have no clue why did you change=
that var=20
than change it back and forget about it.

 

Good luck

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LE=
FT: #000000 2px solid; MARGIN-RIGHT: 0px">
----- Original Message -----

style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black">Fro=
m:
=20
href=3D"mailto:lud_nowhere_man@yahoo.com">Ludwig Lim
To: l.org=20
href=3D"mailto:pgsql-php@postgresql.org">PostgreSQL Mailing List
V>
Sent: Thursday, April 29, 2004=20
14:14

Subject: [PHP] Question regarding=
=20
session


Hi:

   I have a question regarding PHP=20
session
I change the setting :
  
   =
=20
session.save_handler =3D files;
to
   =20
session.save_handler =3D user;

I got the following error message=
=20
everytime run
php (even If I tried it at command line)

 &=
nbsp;=20
PHP Fatal Error: Unknown(): Failed to initialize
session module in Unk=
nown=20
on line 0

   Even if I tried it command line without=20
any
argument, an error still occured.
 

PHP version :=
=20
4.3.1
O.S.        : Mandrake=20
8.0

Thank you,

ludwig lim

ludwig   =
=20





__________________________________
Do you=20
Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 
=20
href=3D"http://hotjobs.sweepstakes.yahoo.com/careermakeover" >http://hotjo=
bs.sweepstakes.yahoo.com/careermakeover=20


---------------------------(end of=20
broadcast)---------------------------
TIP 6: Have you searched our lis=
t=20
archives?

         &n=
bsp;    =20
href=3D"http://archives.postgresql.org">http://archives.post gresql.org<=
/BLOCKQUOTE>

------=_NextPart_000_011F_01C42DF8.30977C70--