title: Sharing session between Laravel and PHP App
body: <p>I have two app in one server, the first is Laravel based and the second is a pure PHP app.</p>
  
  <p>Now I want to save some variables in the session in laravel and use it in my pure PHP app.</p>
  
  <p>I tried various ways to store session variables but any of them won't worked.</p>
  
  <pre><code>Session::put('key', 'value');
  
  $request-&gt;session()-&gt;put('key', 'value');
  
  $_SESSION['key'] = 'value';
  </code></pre>
  
  <p>None of the above storing method allowed me to fetch the session in my pure PHP app.<br>
  I <code>print_r($_SESSION)</code> this in pure PHP app and return null.</p>