well, I do the same thing in my application but I use
$data.user.setTemp(...,...) and getTemp(...) instead and it works fine for
me.
cheers
Akmal
>From: Alexander Banthien <[EMAIL PROTECTED]>
>Reply-To: "Turbine Users List" <[EMAIL PROTECTED]>
>To: Turbine Users List <[EMAIL PROTECTED]>
>Subject: Cookies in Actions and Screens
>Date: Mon, 01 Jul 2002 12:50:31 +0200
>
>Hi folks,
>
>if anybody has gained experience in this please give me a hint.
>
>My site is supposed to have on option for the users to change the
>fontsize/stylesheet, for the display of their pages. (Bad idea say the
>layouters ;-)
>
>I chose to store the fontsize information in a cookie, which persists a
>single user session.
>
>I wrote two Actions: IncreaseFontsize, DecreaseFontsize which, when
>called, do thier job correctly and set a new cookie value:
>//------- action -----------------------
>CookieParser cp = data.getCookies();
>cp.set("fontsize",newvalue);
>//--------------------------------------
>
>The problem is that the screen, which is executed right after one of
>those actions, does not know about the new value. Only upon the next
>run, does the new setting become active:
>
>//-------- screen ---------------------
>CookieParser cp = data.getCookies();
>cp.get("fontsize"); //turns out to be old.
>//--------------------------------------
>
>How must I instanciate the CookieParser in the screen in order to get
>the new value?
>
>Thanks for the attention
>
>Alexander
>
>
>--
>
>Mit freundlichen Gr��en
>Alexander Banthien
>
>_______________________________________
>Questech GmbH
>Schwarzwaldstr. 19
>79199 Kirchzarten
>
>Fon: +49 (0)7661 90 35-15
>Fax: +49 (0)7661 90 35-20
>www.questech.de
>
>_______________________________________
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>