dhunt925/ConsiderIt — Issue #54: Logout should clear session and redirect to home
Author: krystay
Created: 2012-02-19 05:32:15+00:00
State: open

When the user logs out, they remain on the same page - even if it's a page you should only be able to see when logged in (namely the voter summary). This can be confusing because the user gets no feedback that they've actually logged out. I think we should redirect to home.

(This will also solve a bug currently where if you're on the "My pros/cons" page and then log out, it throws an error trying to call nil.capitalize.)

Also, the session state should be cleared on logout. Otherwise, things get funky if two users log in. If you pick a position and add some points, then log in, then log out, some of that state gets saved. If you log in with a different account, the position gets overridden and I was even able to make it generate an error when viewing your pros (something about trying to add a point twice). Let me know if you need a better repro.