I am currently setting cookieParams for my session in my config file to allow session to be used across subdomain:
array( 'domain' => '.mysite.com' )
I implemented a custom domain feature allowing my user to use any custom domain. With the above code, session does not work under a custom domain. If I take out the above code, session works under the custom domain, but session is not shared between subdomains.
Is there a way to make session work under custom domain while having subdomains share the session?
Thanks for the reply. I don’t quite follow. I am using CDbHttpSession for session. With the code you provided, it seems that session is not working for custom domains i.e. somecustomdomain.com.
I ended up setting the cookieParams dynamically in my root Controller by looking at the request hostInfo