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(); // Recently Moved Up Here!!!!
> > odbc_fetch_into($result,$_SESSION,1);
> >
> > $salt = strtoupper(md5(uniqid(rand())));
> > session_id($salt);
> > header("Location: https://test.whatever/index.php?".SID);
> >
> > --clip-- (Page 2)
> >
> > session_start(); // Recently Added
> > print_r($_COOKIE);
> > print_r($_SESSION);
> >
> > --clip--
Thanks,
FletchSOD
"Al Baker" <[EMAIL PROTECTED]> wrote in message
1025712692.3987.0.camel@workstation">news:1025712692.3987.0.camel@workstation...
> 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. 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
> > does not work on the 2nd page. Since I can't use the register_global(),
so
> > I don't see how someone claim that it can work without it. I will
> > appreciate it.
> >
> > --clip-- (Page 1)
> >
> > odbc_fetch_into($result,$_SESSION,1);
> >
> > $salt = strtoupper(md5(uniqid(rand())));
> > session_id($salt);
> > session_start();
> > header("Location: https://test.whatever/index.php?".SID);
> >
> > --clip-- (Page 2)
> >
> > print_r($_COOKIE);
> > print_r($_SESSION);
> >
> > --clip--
> >
> > Thanks!
> > FletchSOD
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> --
> This email was sent with Ximian Evolution.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php