Cheers koen,
yeh, i have done that as a work-around just seems inconsistent if you change
a cookie the old state remains in the environment...
Roja
2008/12/9 Koen Deforche <[EMAIL PROTECTED]>
> Hey Anthony,
>
> 2008/12/6 Anthony Buck <[EMAIL PROTECTED]>:
> > Hey,
> >
> > Is there a simple way of causing the cookies to be re-captured from
> the
> > environment? I am using setCookie to delete a cookie but because i am
> then
> > reading the cookie using the environment() i am getting the old cookie
> data
> > back!
>
> Cookies are really meant to be used only across sessions: therefore
> you should only read cookies from the environment when starting your
> session, and certainly not after you have changed their value ?
>
> Perhaps you should consider to put whatever state you encode in the
> cookie, also as a variable within your specialized WApplication for
> internal use ?
>
> > P.S. I thought of clearing the cookie map but i wasn't too sure that it
> > would be re-filled after the next redraw...
>
> The WEnvironment remains constant after the session has started (or should
> be).
>
> Regards,
> koen
>
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
>
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest