title: Session variable doesn't persist during redirect in laravel
body: <p>I am making a redirect to homecontroller after user authenticates and set a auth token to session for use in the home controller as - </p>
  
  <p><strong>Controller 1</strong></p>
  
  <pre><code>$secret = Crypt::encrypt($secret);
    Session::put('secret', $secret);
    Session::save();      
    return redirect()-&gt;action('loginController@homeRedirect');
  </code></pre>
  
  <p><strong>Controller 2 -> homeRedirect</strong></p>
  
  <pre><code>function homeRedirect(){
        dd(Session::all());
        if(Session::has('secret')){
          $secret = Session::get('secret');
          Session::forget('secret');
  </code></pre>
  
  <p><strong>Here the dump comes blank array.</strong> nothing comes in the session, however if i test this <code>dd(Session::all())</code> then it gives correct details.</p>
  
  <p>Also I have tried as sending data using <code>with('secret', $secret)</code> but that is also returning a blank session.</p>
  
  <blockquote>
    <p>My session.php file has following entry <code>'driver' =&gt; 'file',</code> and the laravel version is 5.2.</p>
  </blockquote>
  
  <p><strong>EDIT</strong></p>
  
  <p>Also if I try like this - </p>
  
  <pre><code>function homeRedirect(Request $request){
    $ses = $request-&gt;session()-&gt;get('secret');
    dd($ses);
  </code></pre>
  
  <p>Then I get error stating <code>Session store not set on request.</code></p>