title: disconnect client from server side signalr
body: <p>I'm using SignalR 1 with MVC4 C# web application with form authentication.
  I have a code in my layout page in JavaScript : </p>
  
  <pre><code>$(documnet).ready(function(){
         connect to hub code ...
  })
  </code></pre>
  
  <p>I want to disconnect a user form the hub and start connect again after he does a login and validate ok.
  I want to do it from server side inside my account controller and method :</p>
  
  <pre><code>public ActionResult LogOn(LoginModel model, string returnUrl)
  {
      if (ModelState.IsValid)
      {
          if (System.Web.Security.Membership.ValidateUser(model.UserName, model.Password))
          {
              FormsAuthentication.SetAuthCookie(model.UserName, false);
              ....here , disconnect from hub
              ....to make the user reconnect     
  }
  </code></pre>
  
  <p>The reason I want to do it is because SignalR throws an error if user changed to authenticated after login and the connection remains . The error is: </p>
  
  <blockquote>
    <p>The connection id is in the incorrect format.</p>
  </blockquote>