Re: Setting a cookie from a NextPageDelegate in D2W

2014-11-19 Thread Fabian Peters
Hi Ramsey, Am 19.11.2014 um 20:00 schrieb Ramsey Gurley : > D2W creates stateful pages. There is already a cookie set for the session. If > you store what state you need on the session, then you can retrieve it from > there easily. Yes, but this app keeps the session ID in the URL, mostly to

Re: Setting a cookie from a NextPageDelegate in D2W

2014-11-19 Thread Ramsey Gurley
D2W creates stateful pages. There is already a cookie set for the session. If you store what state you need on the session, then you can retrieve it from there easily. If you are going to somehow lose the session, setting a cookie is probably not a robust enough way to handle things. Example:

Setting a cookie from a NextPageDelegate in D2W

2014-11-19 Thread Fabian Peters
Hi, I'm implementing an email address change feature in a D2W app. In the course of this I'd like to set a cookie with a UUID. Alas, the NextPageDelegate interface requires me to return a WOComponent. Which seems to make it impossible to pass a cookie with the response, the component being gen