[Seaside] Session expiry
aaamos at gmail.com
Wed Jan 2 10:52:31 UTC 2008
Thanks, Lukas, I did see similar questions in the archives, but the
answer only ever seems to be a workaround, not a complete solution (at
least for me). I'll see if I can work out something for myself just to
satisfy my own curiosity - hopefully without breaking the framework
However, your comment answers my other question as to why the session
expiry time was always equal to the session duration: I hadn't
realised that the 'every: 1 second' bit effectively causes a request
to the server every second (hence resetting the expiry time every
(obviously wrong in hindsight).
Which begs the question: is there some other way to show the remaining
session time without triggering a request? Otherwise my idea about
showing the remaining time is doomed :-(
@John: thanks, I'll probably do it that way, since the public part of
the site should be bookmarkable etc.
On 1/2/08, Lukas Renggli <renggli at gmail.com> wrote:
> Check out the mailing list archive. This is a FAQ.
> For example to ensure the persistency of a session as long as the user
> keeps its window open can be done by adding some Scriptaculous code to
> your page:
> html request
> every: (sessionExperyTime - 5 seconds);
> callback: 
> This will trigger an asynchronous request 5 seconds before the session
> expires (given a correct vaue of sessionExpiryTime) that keeps the
> session alive for another sessionExpiryTime seconds.
More information about the seaside