title: How to redirect to login page if session is not available in MVC
body: <p>I am developing ASP.Net MVC 5.0 application, . Now I have created login page. when user is valid I am storing user details into seesion.</p>
  
  <pre><code>        if(_loginmodel.authstatus == false)
          {
              return View("Index");
          }
  
          Session["authstatus"] = true;
          Session["userid"] = _loginmodel.userid;
          Session["useremail"] = _loginmodel.useremail;
          Session["username"] = _loginmodel.username;
  </code></pre>
  
  <p>No when user go to other files I am again checking session available or not </p>
  
  <pre><code>  public class CityController : Controller
      {
  
      private CityModels _citymodel;
  
      #region Constructor
      public CityController()
      {
          if (Session != null &amp;&amp; Session["authstatus"] != null)
          {
              _citymodel = new CityModels();
  
          }
          RedirectToAction("Index", "Login");
      }
      #endregion
     }
  </code></pre>
  
  <p>so now  how can i redirect him to login page if session expired</p>