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

Reply via email to