[Seaside] Session expiry
Lukas Renggli
renggli at gmail.com
Thu Jan 3 17:12:37 UTC 2008
> Gruezi (hope I got that right...) Lukas,
I am from Bern and we say "Gruesech", which is a bit different from
the "Gruezi" in Zurich.
> I'd also prefer to get the session instance rather than just the root
> component class, but haven't yet discovered how to do that from
> WAApplication (is there a way?). With the method from 1) moved from
> the component class to the session instance, I'd be able to override
> this in my custom session class and make the session expiry behaviour
> dependent on whether or not a user is logged in and/or other factors.
There is actually a property in the application called
#redirectHandler that should be used for that kind of redirects. It
looks like this is currently not done in Seaside 2.8, what is clearly
a bug. We will fix that in 2.9, as it requires to refactor WARegistry
and WAApplication that are in quite a strange relationship right now.
For now I suggest that you create a custom application class and copy
and override the method handleExpireRequest: to do whatever you want.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list