Thanks a lot,
but let me put my question more precisely: it is clear, that by using
data.getUser().get|setTemp() I can assign values into the current user session no
matter wether the user actually logged in or not.
But what if the a user comes back after a few months. How do I recognize his
settings then?
That can only happen with persistent cookies, right?
So my question remains: why is the cookie which I set in an Action not visible to
the Screen immediately, but only after page refresh?
Alex
Alexander Banthien wrote:
> 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]>
--
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]>