IMP1 / iapt1

Interactive web design project for IAPT module in 3rd year Computer Science degree at Univeristy of York.
0 stars 0 forks source link

Add logout functionality #12

Closed IMP1 closed 9 years ago

IMP1 commented 9 years ago

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.

IMP1 commented 9 years ago

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.