Pages

Showing posts with label sessions. Show all posts
Showing posts with label sessions. Show all posts

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', '.domain.com');" 
By default Cake is creating a cookie for each domain. With this you can use same sessions across subdomains.