1
I’m having trouble keeping sessions active between system subdomains, I’m using Cakephp version 2.4.7, I’ve added the function below in App/bootstrap.php
ini_set('session.cookie_domain', env('HTTP_BASE'));
I’ve put in the App/core.php
Configure::write('Security.level', 'low');
Configure::write('Session.save', 'session_save_handler');
But even so it doesn’t work, has some more configuration for it to work?
can you put the example of Subdomain? it has which address? address to which folder?
– Igor Martins
take a look at this topic: http://stackoverflow.com/questions/10519570/cakephp-keep-session-from-main-domain-across-to-a-subdomain
– Igor Martins
Hello @Igormartins, I had already seen the link posted and it was based on it that I made the settings, but so far unsuccessful. the link is Accounts.meusite.com.br and even if you put Account.meusite.com.br pointing to the same folder does not work, on
ini_set('session.cookie_domain', '.meusite.com.br')
, only one Obs.: I’m working locally.– Williams
I had to change some settings in php.ini and following this example in the documentation (http://book.cakephp.org/1.3/pt/The-Manual/Core-Components/Sessions.html). tip! Thank you.
– Williams