Hello everyone,

I am currently building an application where sessions will be shared
accross the entire network.

I think I found a solution to the problem, but it only works when
security level is set to low in app/config/core.php

Cakephp version 1.2 RC3

In cake/libs/session.php  around line 427 I added the follwoing code:

//Added by me
                $domain = $this->host;
                //$domain = env("HTTP_HOST");
                $parts = explode('.',$domain);
                //better be safer than sorry
                if(!isset($parts[0])) $parts[0] = 'www';
                $subdomain = $parts[0];
                $cookie_domain = str_replace($subdomain,'',$domain);
                if ($ini_set) {
                        ini_set('session.cookie_domain', $cookie_domain);
                }

It works fine, but I am tryin to achieve the same result with the
security settings set to high.


Does anyone know how I could achieve that?

Is there a better solution for doing this?

Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to