Re: php4 / sessions

From: Date: Fri, 13 Dec 2002 18:21:46 +0000
Subject: Re: php4 / sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128183@lists.php.net to get a copy of this message
I would set it with $HTTP_SESSION_VARS['client_filter'] = $client_filter; Maybe that will work? I think they are trying to get people to quit using the session_register? I could be wrong. Anyways, take out the session_register and do it like I showed you above. One way to see if it is set before setting it is to: if (!isset($_SESSION['client_filter'])) { $_SESSION['client_filter'] = $client_filter; } That way it will be set before the rest of the script commences. Hope this works for you! If not, I'm not sure what the problem is and someone else will have to help you. --Joseph Guhlin http://www.josephguhlin.com/ Was I helpful? Let others know: http://svcs.affero.net/rm.php?r=bahwi Kevin Porter wrote:
Hi, I'm trying to get a session variable to work. Here's the code at the start of my script: session_name('CLIENTFILTER'); session_start(); session_register( 'client_filter' ); As I understand it, the variable $client_filter should now be available to me? But I can't see it with either just $client_filter or even $HTTP_SESSION_VARS['client_filter']. It's definitely setting a cookie in the browser, but it doesn't seem to be picking up the variable on subsequent pages. I'm on PHP 4.0.6 with register_globals turned on. (Apache on Solaris) Any help greatly appreciated.... TIA, - Kev ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************


« previous php.general (#128183) next »