Monday, February 4, 2013

Maintain Session across subdomain

To maintain your session variable across the subdomains in cakephp you need to do the following:

  1. Open app/config/bootstrap.php
  2. Add "ini_set('session.cookie_domain', '');" 
By default Cake is creating a cookie for each domain. With this you can use same sessions across subdomains.

No comments:

Post a Comment