I'm still having problems with this.  I was able to get sessions and session
variables working ok with register_globals=on, but I had read that it was
better not to keep register_globals on so I turned it off and I'm trying to
figure out how this works now.

I'm registering a variable in one function say like this:
function set session()
{
  global $my_session_var;
  session_start();
  $my_session_var = "Blah blah";
  session_register('my_session_var');
}

Then I'm trying to read it in another function like this:
function read_session()
{
  global $HTTP_SESSION_VARS;
  session_start();
  echo ($HTTP_SESSION_VARS[my_session_var]);
}

I assume this isn't the right way to do it since it doesn't seem to work.  I
have register_globals off.  Does anyone know what I should be doing?
Thanks in advance for any replies!

-- 
Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]
hm: [EMAIL PROTECTED]



******************************************************************
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.
******************************************************************

-- 
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