title: Not able re-login after session timeout in asp.net mvc4 application
body: <p>the code in global.asax is</p>
  
  <pre><code>    protected void Session_Start(Object sender, EventArgs e)
       {
         Session["init"] = 0;           
       }
  
       protected void Session_End(Object sender, EventArgs e)
       {
           Session.Clear();             
       }
  </code></pre>
  
  <p>and in web.config file is </p>
  
  <pre><code>&lt;sessionState mode="InProc" cookieless="false" timeout="10" customProvider="DefaultSessionProvider"&gt;
  </code></pre>
  
  <p>and after session time out login page is displayed.
  User enters the field and clicks the login button.
  on login button an ajax post is called as</p>
  
  <pre><code> $.ajax({
            type: 'POST',
            url: 'Main/BoolLogin',
            data: { username: $("#userName").val(), pwd: $("#password").val() }
     });
  </code></pre>
  
  <p>Initially this call is working fine at the application start up
  but after session timeout on clicking the login button</p>
  
  <p>This error is displayed</p>
  
  <p>Failed to load resource: the server responded with a status of 404 (Not Found) </p>
  
  <p>I am new to sessions.
  Please Help.</p>