One session for many cakephp applications in the same domain

Sorry if my English is bad, I speak Spanish. I have a project with many different cake app, only database, same Security.salt and Security.cipherSeed (example,, I need to generate only session where the user can go from to, without having to login again


I think you need to look into the session wrapper

For example if you want your session to persist across all subdomains you can do:

Configure::write('Session', [
    'defaults' => 'php',
    'ini' => [
        'session.cookie_path' => '/',
        'session.cookie_domain' => ''

Also read up on the session_set_cookie_params() and setcookie() domain parameter, just to have a feeling about what’s going on with cookies and (sub)domains.

1 Like

Tu eres dios!!! gracias!!!