The do_logout() function generates the logout page, which contains a link to the login page.
The do_logout() function removes the loggedin session variable from session state to complete the logout request.