summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/authenticated_system.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb
index 217f79e9..7accfaaa 100644
--- a/lib/authenticated_system.rb
+++ b/lib/authenticated_system.rb
@@ -109,8 +109,6 @@ module AuthenticatedSystem
109 # havoc with forgery protection, and is only strictly necessary on login. 109 # havoc with forgery protection, and is only strictly necessary on login.
110 # However, **all session state variables should be unset here**. 110 # However, **all session state variables should be unset here**.
111 def logout_keeping_session! 111 def logout_keeping_session!
112 # Kill server-side auth cookie
113 @current_user.forget_me if @current_user.is_a? User
114 @current_user = false # not logged in, and don't do it for me 112 @current_user = false # not logged in, and don't do it for me
115 session[:user_id] = nil # keeps the session but kill our variable 113 session[:user_id] = nil # keeps the session but kill our variable
116 # explicitly kill any other session variables you set 114 # explicitly kill any other session variables you set