title: Remember me in Asp.Net Mvc4
body: <p>I am new one to Asp.Net Mvc4 with Entity Framework. I am trying to implement Remember me task in Log in page. Here i am not using any model property for Remember me. I am just passing the value to Controller from Model. Please help me to set a cookie in the controller.Thanks in advance.</p>
  
  <p>This is my Model Code:</p>
  
  <pre><code> @using (Html.BeginForm("LogIn", "Login"))
                  { 
  
                      &lt;p class="mt5 mb20"&gt;Login to access your account.&lt;/p&gt;*@
                      &lt;div&gt;
                      @Html.ValidationSummary(true)
                      &lt;/div&gt;
                      &lt;div&gt;
                      @Html.TextBoxFor(u =&gt; u.UserName, new { @class = "form-control uname", placeholder = "UserName" })
  
                      @Html.PasswordFor(u =&gt; u.UserPassword, new { @class = "form-control pword", placeholder = "Password" })
  
  
  
                      @Html.ActionLink("Forgot Password?","Forgotpassword","Login",new {@class="navbar-link"})
                      &lt;span&gt;Remember&lt;/span&gt;&lt;input type="checkbox" name="remember"/&gt;
                      &lt;button class="btn btn-success btn-block" value="login"&gt;Sign In&lt;/button&gt;
                      &lt;/div&gt;
                  }
  </code></pre>
  
  <p>This is the way i am getting the value in Controller.
  This is my Controller code:</p>
  
  <pre><code>[HttpPost]
          public ActionResult LogIn(Tbl_Users user, FormCollection forms)
  </code></pre>