User-821857111 posted
The first line is a custom method. What it actually does is anyone's guess, but from it's name, it appears to end a session, or clear its content. The second line logs the user out by clearing the authentication cookie. The third line clears the session
(again, perhaps) and the fourth line redirects the user to the page designated as the loginUrl.