RE: [PHP] Need Help with $_SESSION.

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 20:58 Still working on the script. Here what I found out so far. Why does the example #1 work and example #2 doesn't? Example #1 Page 1 $_SESSION[0] = Zero; $_SESSION[1] = One;

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Al Baker
You must do a session_start() before you can use the session ID or the session array. On Wed, 2002-07-03 at 12:24, Scott Fletcher wrote: Have not been successful in making this work for 2 days now. I'm focusing on making the $_SESSION to work on each webpages. The 1st page is the login.

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
That one doesn't work too well! Also, here's the old script that work with the register_global turned on. But making it work with register global turned off is what I haven't gotten it to work. --clip-- (Page 1) odbc_fetch_into($result,$user_detail,1); $salt = strtoupper(md5(uniqid(rand(;

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
Al Baker's comment does help to iron out the broken script. Thanks, Al Now, I still can not understand why the 2nd page show the $_SESSION as blank. It is suppose to contain datas. The php.net stated that $_SESSION is global. Any comments? --clip-- (Page 1) session_start(); //

RE: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Johnson, Kirk
Now, I still can not understand why the 2nd page show the $_SESSION as blank. It is suppose to contain datas. The php.net stated that $_SESSION is global. Any comments? register_globals on --- Page 1 ? session_start(); $foo = 'bar'; session_register('foo'); $foo =

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
The demostration written by Kirk Johnson worked pretty well. So, it should work with my demo script I posted earlier today. Alright! I'm going to have to debug it to find the problem. I'll post the final script once everything is ironed out. Hope to get it done today. Thanks, FletchSOD

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
Still working on the script. Here what I found out so far. Why does the example #1 work and example #2 doesn't? Example #1 Page 1 $_SESSION[0] = Zero; $_SESSION[1] = One; Page 2 echo $_SESSION[0]; echo $_SESSION[1]; Example #2 Page 1 $array[0] = Zero; $array[1] = One; //This is either