app/models/user.rb
# Delete session data before we logout.
# Removes run_key, and user info from the browsers session.
# So that logged-in indicator will match actual logged in status.
Delete session data before we logout.
Removes run_key, and user info from the browsers session.
So that logged-in indicator will match actual logged in status.
Delete session data before we logout . Removes run_key and user info from the browsers session . So that logged - in indicator will match actual logged in status .
def clear_session_data(rack_session)
   rack_session.delete "portal_username"
   rack_session.delete "portal_user_id"
   rack_session.delete "portal_domain"
   rack_session.delete "user_return_to"
  end
def clear_session_data ( rack_session ) rack_session . delete "portal_username" rack_session . delete "portal_user_id" rack_session . delete "portal_domain" rack_session . delete "user_return_to" end
Delete session data before we logout.
Delete session data before we logout .
rack_session
<not_specific>