title: Laravel not preserving a session/cookie after redirection
body: <p>I need some information to be preserved in a session(or cookie) even after multiple redirects. i stored it in a session(in a controller method) using</p>
  
  <pre><code>Session::put('product_quantity', $productQuantity);
  </code></pre>
  
  <p>and then tried to use it another method using </p>
  
  <pre><code>Session::get('product_quantity');
  </code></pre>
  
  <p>but it gives <code>null</code>. Same problem with cookies.</p>
  
  <p>I checked that <code>storage/frameworks/session</code> is writable. Is there anything i'm missing?</p>