title: CakePhp 3.x Continue session from out of the app
body: <p>I'm building a <strong>new version of a website in cakephp 3.x</strong>. Since I rebuild in phases,I need interaction between parts of the new site and the old site. The best way to do this at this moment is with the use of <strong>$_SESSION</strong>.
  My problem is that the cakephp part makes a new session instead of using the active one from the native PHP part. It writes it next to it in the same folder.</p>
  
  <p>this is my app.php setting in cakephp </p>
  
  <pre><code> 'Session' =&gt; [
      'defaults' =&gt; 'php',
      'timeout' =&gt; '2000',
   'ini' =&gt; [
       'session.cookie_domain' =&gt; '.domain.com',
       'session.save_path' =&gt; '/var/www/clients/web/tmp',
       'session.name' =&gt; 'PHPSESSID'
   ]
  ],
  </code></pre>
  
  <p>These are my php.ini settings</p>
  
  <pre><code>Session Support enabled
  Registered save handlers    files user memcache memcached
  Registered serializer handlers  php php_binary wddx
  
  Directive   Local Value Master Value
  session.auto_start  Off Off
  session.cache_expire    180 180
  session.cache_limiter   nocache nocache
  session.cookie_domain   no value    no value
  session.cookie_httponly Off Off
  session.cookie_lifetime 0   0
  session.cookie_path /   /
  session.cookie_secure   Off Off
  session.entropy_file    /dev/urandom    /dev/urandom
  session.entropy_length  32  32
  session.gc_divisor  1000    1000
  session.gc_maxlifetime  1440    1440
  session.gc_probability  0   0
  session.hash_bits_per_character 5   5
  session.hash_function   0   0
  session.name    PHPSESSID   PHPSESSID
  session.referer_check   no value    no value
  session.save_handler    files   files
  session.save_path   /var/www/clients/web/tmp    /var/www/clients/web/tmp
  session.serialize_handler   php php
  session.upload_progress.cleanup On  On
  session.upload_progress.enabled On  On
  session.upload_progress.freq    1%  1%
  session.upload_progress.min_freq    1   1
  session.upload_progress.name    PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
  session.upload_progress.prefix  upload_progress_    upload_progress_
  session.use_cookies On  On
  session.use_only_cookies    On  On
  session.use_trans_sid   0   0
  </code></pre>