RE: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Johnson, Kirk
> -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. >

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Christian Reiniger
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

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Yasuo Ohgaki
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"]. > >

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Chung Ha-Nyung
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.

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Yasuo Ohgaki
- 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. > >

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-13 Thread Chung Ha-Nyung
> "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=

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-13 Thread Yasuo Ohgaki
> 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

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-13 Thread Yasuo Ohgaki
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

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-13 Thread Chung Ha-Nyung
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"]

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-13 Thread Chung Ha-Nyung
> "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. >

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-12 Thread Yasuo Ohgaki
- 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