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 admin.domain.com, shop.domain.com, deposit.domain.com.). I need to generate only session where the user can go from admin.domain.com to deposit.domain.com, without having to login again
Gracias!!
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' => '.domain.com'
]
]);
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!!!