Module: Pubcookie::SessionsController::InstanceMethods
Instance Method Summary
collapse
#handle_pubcookie_ondemand
Instance Method Details
#destroy_with_pubcookie ⇒ Object
TODO: remove this dependency on apache for logout redirect?
25
26
27
28
29
|
# File 'lib/pubcookie/sessions_controller.rb', line 25
def destroy_with_pubcookie
logger.debug "Handling logout with pubcookie."
logout_user
redirect_to '/logout-redirect'
end
|
#logout_user_with_pubcookie ⇒ Object
31
32
33
34
|
# File 'lib/pubcookie/sessions_controller.rb', line 31
def logout_user_with_pubcookie
logger.debug "Deleting OnDemandKey cookie."
cookies.delete :OnDemandKey
end
|
#new_with_pubcookie ⇒ Object
20
21
22
|
# File 'lib/pubcookie/sessions_controller.rb', line 20
def new_with_pubcookie
handle_pubcookie_ondemand
end
|