Hello Teodor,

Wednesday, January 31, 2001, 10:49:34 AM, you wrote:

TC> Hi Mark!
TC> On Wed, 31 Jan 2001, Mark Green wrote:

>> How about this:
>> 
>>  session_start();
>>  session_register($funky_session_var);
>>  $funky_session_var ++;
>>  print $funky_session_var;

TC> the order doesn't matter (as it did in PHPLib sessions).
TC> If it doesn't work I guess it's because you have register_globals off.

First, I believe the variable should be initialized first (even in
favour of common sense), and then registered.
Second, session_register($funky_session_var) gives your nothing (if
not an error). You should session_register('funky_session_var')
instead (the NAME of the variable, not the variable itself).




-- 
Best regards,
Max A. Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



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