Wicket org.apache.wicket.authroles.authentication.AuthenticatedWebSession
has 2 methods: signOut
and invalidate
. The javac says that signOut
mark use not logged in
while invalidate
do the same (e.g. call signOut
) but
remove the logon data from where ever they have been persisted
At first glace for logout action signOut
should be called. But for security reasons session must be invalidated immediately after user logins or logouts. So from this point invalidate
should be called.
So what to call for logout? Also when it is needed to call signOut
and when invalidate
?