title: Laravel remember me is always on
body: <p>I am using <strong>Laravel 4.2</strong> and I want to let users decide if they want their login to be remembered on their PC or not. So my login form looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/8UHxZ.png" alt="enter image description here"></p>
  
  <p>When you tick the checkbox, the post fields will have <code>'remember_me' =&gt; 'on'</code>. The form posts to a named route called <code>sessions.store</code> which is handled like so:</p>
  
  <pre><code>public function store()
  {
      // Capture input data
      $input = Input::only('email', 'password');
  
      // Validate input
      $this-&gt;loginForm-&gt;validate($input);
  
      // Login user
      if (Auth::attempt($input, (Input::get('remember_me') == 'on')))
          return Redirect::intended('/');
  
      // Login error
      return Redirect::back()-&gt;withInput()-&gt;withFlashError('Invalid portal account credentials provided');
  }
  </code></pre>
  
  <p>For some reason, laravel keeps the user logged in (i.e. you close the browser completly and re-open it and you don't have to login, you are already logged in), even if they have not ticked the checkbox.</p>
  
  <p>Any idea why this might be?</p>
  
  <hr>
  
  <p><strong>Update</strong></p>
  
  <p>This is my <strong>sessions/create.blade.php</strong>: <a href="http://pastebin.com/raw.php?i=MbrLgg6Y" rel="noreferrer">http://pastebin.com/raw.php?i=MbrLgg6Y</a></p>
  
  <p>This is my <strong>javascript checkbox helper</strong>: <a href="http://pastebin.com/raw.php?i=R8mNrj3s" rel="noreferrer">http://pastebin.com/raw.php?i=R8mNrj3s</a></p>