[PHP] confusing problem w/sessions

2001-08-20 Thread Gabriele Biondo
Dear sirs; i have a simple snippet of code : ? session_start(); $a = 10; session_register(a); ? i am trying to understand how do session work. Accessing at this document directly from the server (it is a SuSE 7.2 PE - running PHP 4.0.4 and apache 1.3.9) i find out the following

Re: [PHP] confusing problem w/sessions

2001-08-20 Thread php mailing list
start your session before sending any html output to browser check that register_globals is on if not use $HTTP_SESSION_VARS(a) instead to reference your session var assign a value after having initialiazed your var not before -- Original Message -- From:

Re: [PHP] confusing problem w/sessions

2001-08-20 Thread Gabriele Biondo
start your session before sending any html output to browser Okay. This solves the problem w/the warnings check that register_globals is on It is actually on if not use $HTTP_SESSION_VARS(a) instead to reference your session var assign a value after having initialiazed your var not

RE: [PHP] confusing problem w/sessions

2001-08-20 Thread Quentin Gillet
: Gabriele Biondo [mailto:[EMAIL PROTECTED]] Envoyé : lundi 20 août 2001 15:11 À : [EMAIL PROTECTED]; PHP Objet : Re: [PHP] confusing problem w/sessions start your session before sending any html output to browser Okay. This solves the problem w/the warnings check that register_globals