The toggle works the first time and dumping the session variables, it appears to set the correct state. But if I refresh or toggle the same area, the session variables seem to have reverted back.

if(session has("foo"))
if(defined($toggle))
set session($toggle; not(get session($toggle))) // flip toggle
end if
else
set session("foo";true;"foo1";true;"foo2";true;"foo3";false) // set initial state
end if

Seems to me the code above will toggle the state of $toggle EVERY time the page is refreshed, assuming $toggle is defined.


Two other possibilities:

- Are you absolutely sure there is no code in On Execute Start or On Execute End that might be affecting this?

- Are you sure the session is in fact being maintained from one hit to the next? Dump the session internal id and see.

Regards,

   Aparajita
   Victory-Heart Productions
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com

_______________________________________________
Active4D-dev mailing list
[EMAIL PROTECTED]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to