If you have two different domains, I would suggest the following:
On the page "www.mainDomain.com" put a link to the site "www.fr.subDomain.com" and transfer the cookie in a file of the form:
$session_cookie = $_COOKIE[Configure::read('Session.cookie')]; echo $html->link('See French Site', 'http://www.fr.subDomain.com/?session_key='.$session_cookie);
Then on the French site, add some code to simulate cookies in app_controller.php> beforeFilter ().
function beforeFilter() { if(!empty($this->params['url']['session_key']) { // Setup variables here... setcookie(Configure::read('Session.cookie'), $session_cookie, time()+360000, '/', $domain); // You could use CAKE setcookie command here. } }
Now that the cookies are the same, you will have to either use database sessions or cake based sessions. Read the instructions in core.php to install them.
This will allow you to basically use the same session on different sites. I am actually in the middle of implementing an ACL on multiple sites with the same login. It may seem a little complicated, but just do it step by step, everything will be fine. Also, don't be afraid to jump into the core Cake code to see how it works.
Dooltaz
source share