thanks for the starter.  I have session.use_trans_sid = 1 in my php.ini, 
I also have session_start() at the beginning of both pages.  Now 
$HTTP_SESSION_VARS is there, but its a blank array. 
print_r($HTTP_SESSION_VARS); yields->  Array ( )
the code I have at one page is
        $z=<some data>;
        session_start();
        session_register('$z');
I also tried without the quotes, still a blank array.  What am I doing 
wrong?  How do I make sure I'm starting the correct session in the new 
page?  I can get the session ID, but what do I do with it?



Steffan Packer wrote:

> You need to have
>  
> session_start();
> 
> at the top of each page that needs to use the session vars, also check that
> session.use_trans_sid is set to 1 in your ini file
> hope this helps!
> 
> -----Original Message-----
> From: Anthony [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 11, 2001 3:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] sessions
> 
> 
> I need some help with sessions.  I read the sections in the manual and 
> searched for tutorials, but I still can't get a straight forward example 
> of how sessions work.  I need to pass variables to a page that will load 
> in a new browser window.  I used session_register, but when I look in 
> the $HTTP_SESSION_VARS, it doesn't exist.  I tried using start_session 
> and still no luck.  Once I get the session vars registered, how do I 
> access them.  I am able to pass the session id as a var, I'm going it 
> like page.php?sid=$<sid_var>.  Is there a better way, do I need to do 
> this at all?  I'm confused as hell and can't find a working example 
> anywhere. Help!
> 
> - Anthony
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to