To maintain your session variable across the subdomains in cakephp you need to do the following:
- Open app/config/bootstrap.php
- Add "ini_set('session.cookie_domain', '.domain.com');"
By default Cake is creating a cookie for each domain. With this you can use same sessions across subdomains.
No comments:
Post a Comment