> -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
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
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
"Ki
> 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
Page 2:
register_globals off
Page 1:
Pag
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();
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(;
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.
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. The 2nd page represent the rest of the webpages on a secure side
after logging in. I could use some help in making this work. The $_SESSION
do
8 matches
Mail list logo