Re: I don't understand HTTP_SESSION_VARS

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: I don't understand HTTP_SESSION_VARS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45340@lists.php.net to get a copy of this message
I tried this and could not get this working either. Does anyone know which is the best way to do it? What are the pros and cons of doing this with track_vars or as globals? Thanks, Mike > Hi, > > The php manual at: http://www.php.net/manual/en/ref.session.php > says: > > "If track_vars is enabled and register_globals is disabled, only members of > the global associative array $HTTP_SESSION_VARS can be registered as session > variables. " > > so, did you try this: > > session_register($HTTP_SESSION_VARS["my_session_var"]; > > > > > -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: mchampagne@capis.com hm: mchamp@texas.net ****************************************************************** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ******************************************************************

« previous php.general (#45340) next »