title: .NET Language Configuration
body: <p>I'm trying to set language using .NET MVC Web Application</p>
  
  <p>Here is my SetCulture function;</p>
  
  <pre><code>        public ActionResult SetCulture( string lan ) {
          string Culture = Request.QueryString.Get( "lan" );
  
          // Validate input
          Culture = CultureHelper.GetImplementedCulture( Culture );
          // Save culture in a cookie
          HttpCookie cookie = Request.Cookies[ "_culture" ];
          if ( cookie != null )
              cookie.Value = Culture;   // update cookie value
          else {
              cookie = new HttpCookie( "_culture" );
              cookie.Value = Culture;
              cookie.Expires = DateTime.Now.AddYears( 1 );
          }
          Response.Cookies.Add( cookie );
          //Session["_culture"] = Culture;
          return RedirectToAction( "../Home/Index" );
      }
  </code></pre>
  
  <p>Here is the first problem;
  When the page <code>http://localhost:55616/Home/Index</code> is open, it is okay to change language.
  However, when <code>http://localhost:55616</code> is open, it refresh automatically, but not change language.</p>
  
  <p>Here is the second problem;
  As can be seen, I'm redirecting the page to the <code>../Home/Index</code> page. But I need to redirect to page to itself, for example, when it is on <code>../Home/UserSettings</code>, it would be <code>../Home/UserSettings</code> after changing the language.</p>