maxjustus/sinatra-authentication — Issue #25: When current_user is deleted, session for user need to be deleted
Author: ducngtuan
Created: 2011-10-21 13:18:53+00:00
State: open

When I tried to delete my account, the session[:user] was not automatic deleted. Then logged_in? is true, but current_user is nil. I think it would be logical to also delete/clear the session when the current_user is deleted.