title: MVC RedirectToAction calls Session_Start() in global.asax
body: <p>I am calling RedirectToAction method to call action method from another controller but it clears all session data
  I debugged in global.asax and found out that when ever i call RedirectToAction it calls Session_Start() method.
  I don't know how session start is called.
  Here is my web config code for form and session tag</p>
  
  <p>for session tag</p>
  
  <pre><code>&lt;sessionState mode="InProc" customProvider="DefaultSessionProvider"&gt;
    &lt;providers&gt;
      &lt;add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /&gt;
    &lt;/providers&gt;
  &lt;/sessionState&gt;
  </code></pre>
  
  <p>and for form tag</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/ControllerName/ActionName" timeout="2880" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>this "~/ControllerName/ActionName" is same method from wher i am calling "RedirecToAction" </p>
  
  <p>just for info what i am trying is if i found cookies for user he will be redirected to home page from login page directly</p>
  
  <p>both action methods are in different controller and in different Areas.
  here is code which uses "RedirecToAction" method</p>
  
  <pre><code>public class LoginController : Controller{
  public ActionResult Index()
  {
      if (Request.Cookies["UserName"] != null &amp;&amp; Request.Cookies["Password"] != null)
      {
          FillLoginSession();//Fills Session with user data ex. Session["User_Id"] = 1;
          return RedirectToAction("Index", "Home", new { area = "Home" });
      }
  }}
  </code></pre>
  
  <p>and here is action method in another controller to which i am redirecting.</p>
  
  <pre><code>public class HomeController : Controller{
  public ActionResult Index()
  {
      return View();
  }}
  </code></pre>