title: Unable to set the remember me cookie expiry date in laravel 4.1.28
body: <h2>Background:</h2>
  
  <p>I was Using laravel 4.0.x , and resetting the <em>remember_me</em> cookie expiry date to 1 month (since the default is 5 years ) using this code :</p>
  
  <pre><code>App::after(function($request, $response)
  {
      // If the user is tryin to log_in and he wants to stay logged in, reset the remember_me cookie expiration date from 5 years to 1month
      $remember = Input::get('remember',false);
      if ($remember) {
          if ( Auth::check()){ // check if the user is logged in
              $ckname = Auth::getRecallerName(); //Get the name of the cookie, where remember me expiration time is stored
              $ckval  = Cookie::get($ckname); //Get the value of the cookie
              return $response-&gt;withCookie(Cookie::make($ckname,$ckval,43200)); //change the expiration time to 1 month = 43200 min
          }
      }
  </code></pre>
  
  <p>That code is from <strong><em>app\filters.php</em></strong> of course, and it was working like charm.</p>
  
  <h2>The problem :</h2>
  
  <p>I recently updated laravel from 4.0.x to v4.1.28, and now the remember_me cookies are set to 5 years, I tried for the last hours digging in the code trying to debug but with no luck :( .<br /> 
  Notice that changing <em>$ckname</em> to another value like <em>"test"</em> in the last line of the above code works just fine, it creates a <em>"test"</em> cookie with an expiry of 1 month like I intended </p>
  
  <pre><code>return $response-&gt;withCookie(Cookie::make("test",$ckval,43200));
  </code></pre>
  
  <p>I don't really understand why the remember_me cookie persist to the 5 years expiry date !</p>
  
  <p>Any help would be appreciated :) <br />
  Abdou.</p>
  
  <h2>Update:</h2>
  
  <p>The question is not why I want to change the cookie expiry date, but it's why the cookie won't get updated?! . Thanks.</p>