just a reminder
session invalidateNow vs invalidate
if session#invalidateNow is called before a setResponsepage
then the application#sessionUnbound is called twice.
as invalidateNow is invoked in session#detach.
ko
getSession().invalidateNow();
setResponsePage(Logout.class);
ok
# Invalidates this session at the end of the current request
getSession().invalidate();
setResponsePage(Logout.class);
François Meillet
session invalidateNow vs invalidate
if session#invalidateNow is called before a setResponsepage
then the application#sessionUnbound is called twice.
as invalidateNow is invoked in session#detach.
ko
getSession().invalidateNow();
setResponsePage(Logout.class);
ok
# Invalidates this session at the end of the current request
getSession().invalidate();
setResponsePage(Logout.class);
François Meillet