Hi,
I've 2 "domains" in my localhost:
1) www.mydomain.com
2) club.mydomain.com
In UsersController of domain number 2), in login() action, I do that:
if ($this->Auth->user()) {
if (!empty($this->data)) {
$this->Cookie->write('Auth.User', $this->Auth-
>user('pseudo'),false);
}
}
in AppController::beforeFilter() of domain number 1), I do that:
$cookie = $this->Cookie->read('Auth.User');
if (!is_null($cookie)) {
var_dump($cookie);die;
}
In domain 1), $cookie is always empty
In domain 2), it is always full...
I've setted "session.cookie_domain = .mydomain.com" in my PHP.ini, but
it doesn't work...
I've setted "var $cookieDomain = '.mydomain.com' " in AppController,
but it doesn't work
I'm using Cake 1.2 nightly builds, PHP 5.2
How can I read the same Cookie in my 2 subdomains??
Hope this message is understandable and thank's for suggestions...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---