wwProcess::OnLogout

Hook method that is called after a user has been logged out with a call to Authenticate("LOGOUT").

This functionality allows you to hook up additional logic to clear session values or other stateful data associated with a logged in user more easily. Previously this required taking over either the Authenticate() method or creating a custom Logout() process class method that explicitly logged users out.

o.OnLogout()

Remarks

A logout request and this method call can also occur when no user is logged in, but whenever authentication fails. If an authentication request fails, Logout is implicitly called to effectively log off the user. Thus, this method can be fired , even if a user was not previously logged in. For this reason make sure you don't assume that a user is logged in when logging out.

See also:

Class wwProcess

© West Wind Technologies, 1996-2024 • Updated: 07/06/18
Comment or report problem with topic