The button is there. How will it be done? Setting session.logged_in_user to None somehow. New page just for that, which redirects to page they were on?
Also, add redirects (to homepage?) on profile and dashboard (and other user-only pages) if no user is signed in.
The logout page immediately redirects to the homepage after calling del session.logged_in_user.
The profile and dashboard pages also redirect to the homepage if the user isn't logged in.
The button is there. How will it be done? Setting
session.logged_in_user
toNone
somehow. New page just for that, which redirects to page they were on?Also, add redirects (to homepage?) on profile and dashboard (and other user-only pages) if no user is signed in.