title: session timeout in asp.net mvc when refresh
body: <p>I am running an ASP.NET 4.0 application and published it using plesk control panel.I have done the following.</p>
  
  <p>1.i set session timeout in web.config file as:</p>
  
  <pre><code>&lt;sessionState timeout="20000"/&gt;
  </code></pre>
  
  <ol start="2">
  <li>I handled session variable in login controller like this:</li>
  </ol>
  
  <p><code>Session["userId"] = lUser.userId;
  Session["role"] = lUser.userType;</code></p>
  
  <p>into other controller, the code is like below:</p>
  
  <pre><code>if (Session["role"] == null)
  {
       return RedirectToAction("Index", "Login");
  }
   else if (Session["role"].ToString() == "Admin" || Session["role"].ToString() == "Super Admin")
  {
      return View();
  }
  </code></pre>
  
  <p>this code is ok in my local server but when published into real server using plesk control panel, it also ok for first time. but when i click the same menu second time it redirects to login page.</p>