September 23, 2008
Posted by roadburn
Restful_authentication Internet explorer cannot logout http_basic problem
If you’re getting a security box popup like I did, here’s the link to the solution
Basically, just edit /lib/authenticated_system.rb, and add ‘(:xml, :json)’
def access_denied
respond_to do |format|
format.html do
store_location
redirect_to new_session_path
end
format.any(:xml, :json) do
request_http_basic_authentication ‘Web Password’
end
end
end
Make sure your <head> tag has this too:
<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”>
<META HTTP-EQUIV=”Expires” CONTENT=”-1″>
No Comments Yet
You can be the first to comment!
Leave a comment