Skip to content

Instantly share code, notes, and snippets.

@fernandomantoan
Created February 24, 2014 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandomantoan/9194549 to your computer and use it in GitHub Desktop.
Save fernandomantoan/9194549 to your computer and use it in GitHub Desktop.
require_relative 'listener'
module CASino
class LogoutListener < CASino::Listener
def user_logged_out(url, redirect_immediately = false)
if redirect_immediately
@controller.redirect_to url, status: :see_other
else
assign(:url, url)
end
@controller.cookies.delete :tgt
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment