title: How to set session in one method and get the session data in another method in laravel 5.2
body: <p>This function will get the session value</p>
  
  <pre><code>public function getSession(){
      $value =Session::get('email');
      var_dump($value) ;
  }
  </code></pre>
  
  <p>this function use to set the session values </p>
  
  <pre><code>public function setSession(){
      Session::put('email', 'aaaaaaa.com');
  
      $value=Session::get('email');
      var_dump($value);
  
  }
  </code></pre>
  
  <p>routes.php</p>
  
  <pre><code>Route::get('store','Product@setSession');
  Route::get('display','Product@getSession');
  </code></pre>
  
  <p>when type display in url it's show NULL </p>