Re: Strategy for Ajax + Expired Session

2013-11-20 Thread Lenny Primak
If you would like to contribute this filter to FlowLogix, I will gladly add you as a committer so you can do this. On Nov 19, 2013, at 11:25 AM, Lenny Primak wrote: > I always thought that this was supposed to be handled by Tapestry by default. > So, filter approach would probably work very well

RE: Strategy for Ajax + Expired Session

2013-11-20 Thread Ben Titmarsh
Alright cool! I ended up implementing a request filter that checks for XHR requests when no session exists so I'm glad that others share the opinion. > Subject: Re: Strategy for Ajax + Expired Session > From: lpri...@hope.nyc.ny.us > Date: Tue, 19 Nov 2013 11:25:52 -05

Re: Strategy for Ajax + Expired Session

2013-11-19 Thread Lenny Primak
I always thought that this was supposed to be handled by Tapestry by default. So, filter approach would probably work very well. On Nov 19, 2013, at 10:16 AM, Ben Titmarsh wrote: > Hi Guys, > > This is a problem I've been grappling with for a while now. My app is very > Ajax intensive and rel

Re: Strategy for Ajax + Expired Session

2013-11-19 Thread Peter Hvass
Hi Ben, In our code base we use a request filter as you suggested - it's just a catch all any time there's a stale session and the request is XHR. When the condition holds we just force a traditional reload of the requested page and let our other handlers deal with any expired/stale sessions