Skip to content

Commit

Permalink
use request.cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed May 17, 2011
1 parent c0f6750 commit efbea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/welcome_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def login
end

def logout
cookies[:session_token] = { :expires => 1.day.ago }
request.cookies[:session_token] = { :expires => 1.day.ago.utc }
self.current_user.forget_me if self.current_user
self.current_user = nil
announce_logged_out
Expand Down

0 comments on commit efbea29

Please sign in to comment.