Hi
I'm writing our custom internal error handler which is supposed to
terminate the current session and create a new one (in order to pass
over the locale to the new session).
I've stumbled upon the Session.replaceSession() method which,
according to the javadoc, should just exactly do
Try this in a method of your WebSession subclass:
((WebRequest)
RequestCycle.get().getRequest()).getHttpServletRequest().getSession().invalidate();
// Bind forces a connect of the current Wicket session to the
new HTTP session.
bind();
Regards,
Erik.
Matthias Keller
This is one of the nasty parts of wicket.. very difficult to get rid
of a session. This is what I have come up with:
public static void logout(RequestCycle requestCycle, Request request) {
// flush session
Session.unset();
TakpApplication application = TakpApplication.get();