Re: sessions

From: Date: Tue, 11 Dec 2001 17:06:29 +0000
Subject: Re: sessions
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-77316@lists.php.net to get a copy of this message
Thank you very much, I got it to work. What I didn't understand was that when registering the session var I was not registering the var's value, only the pointer. This makes all kinds of sence now. Thanks! - Anthony 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:atampone@attechcomputer.com] Sent: Tuesday, December 11, 2001 3:54 PM To: php-general@lists.php.net 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


« previous php.general (#77316) next »