> -Original Message-
> From: Chung Ha-Nyung [mailto:[EMAIL PROTECTED]]
>
> My second example program.
> a.php
> session_start();
> session_register("name");
> $HTTP_SESSION_VARS["name"] = "test";
>
> echo session_encode();
> ?>
> a.php
> result is as following.
>
On Wednesday 14 March 2001 09:33, you wrote:
> I set "register_globals = Off" for many reasons.
> Session may not work with "register_globals = On"??
Works fine here (php 4.0.4 / Linux / Apache)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of
SNIP
> >
> >I found something!
> >If I set register_globals to Off in php.ini, then session *seems* to
work
> YO> well.
> >In /tmp, session data file contains both of variable name and value
and I
> YO> can
> >use $HTTP_SESSION_VARS["variable"].
> >
ED]>
YO> Sent: Wednesday, March 14, 2001 5:07 PM
YO> Subject: Re: [PHP] [Q] session variables wouldn't keep contents.
>
>I found something!
>If I set register_globals to Off in php.ini, then session *seems* to work
YO> well.
- Original Message -
From: "Chung Ha-Nyung" <[EMAIL PROTECTED]>
To: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 5:07 PM
Subject: Re: [PHP] [Q] session variables wouldn't keep contents.
>
>
> "YO" == Yasuo Ohgaki <[EMAIL PROTECTED]> writes:
> As I posted right before, file is created in /tmp.
> Franlking speaking, I did not make any change to default settings of php.ini
> In other words,
> session.save_handler = files
> session.save_path=
> As I posted right before, file is created in /tmp.
> Franlking speaking, I did not make any change to default settings of php.ini
> In other words,
> session.save_handler = files
> session.save_path= /tmp
Then , as I wrote previous mail, you should at least have session data file
SNIP
>
> YO> You must start session before output anything to browser, or you must
use
> YO> buffering to do this,
> YO> or you must use URL mode for session.
> YO> i.e. This code sends "" before starting session and cookie
header
> YO> must be sent before if session is cookie
My second example program.
a.php
a.php
result is as following.
!name|
and, /tmp/sess_7d755f490ba4e50da20d7167e2966771 file has only
"!name|" without any stuff relating to "test" which I inserted
into $HTTP_SESSION_VARS["name"]
> "YO" == Yasuo Ohgaki <[EMAIL PROTECTED]> writes:
YO> - Original Message -
YO> From: "Chung Ha-Nyung" <[EMAIL PROTECTED]>
YO> To: <[EMAIL PROTECTED]>
YO> Sent: Tuesday, March 13, 2001 3:19 PM
YO> Subject: [PHP] [Q] session variables wouldn't keep contents.
>
- Original Message -
From: "Chung Ha-Nyung" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 3:19 PM
Subject: [PHP] [Q] session variables wouldn't keep contents.
>
> Hi guys,
>
> Some php programs doesn't seem to work normally in a certain
> server. Those wokred
11 matches
Mail list logo