title: Logout with http basic authentication and restful_authentication plugin
body: <p>I have the restful_authentication plugin installed in a rails app, with a sessions_controller that has a destroy method like this:</p>
  
  <pre><code>def destroy
    self.current_user.forget_me if logged_in?
    cookies.delete :auth_token
    reset_session
    flash[:notice] = "You have been logged out."
    redirect_back_or_default('/')
  end
  </code></pre>
  
  <p>In the application controller I have:</p>
  
  <pre><code>before_filter :login_required
  </code></pre>
  
  <p>And In the sessions_controller I have:</p>
  
  <pre><code>skip_before_filter :login_required
  </code></pre>
  
  <p>My problem is that when a user authenticates with http basic authentication, he/she is not logged out. the session is destroyed, but the user is able to navigate to restricted pages with no problem. This problem does not occur with session authentication through the plugin.  How can I make this method get rid of the basic authenication? </p>