I have to completely agree with John here, set it as a subdomains.
That way you have http://italian.mysite.com, http://www.mysite.com
(english), http://french.mysite.com ... or you can always do
http://it.mysite.com, http://en.mysite.com, http://fr.mysite.com
Either way here's how you set the session to flow between any
subdomains you have.
In your config/bootstrap.php file put this in:
ini_set("session.cookie_domain", ".mysite.com");
// Of course change mysite.com to whatever your domain is.
Then within config/core.php change to:
Configure::write('Security.level', 'low');
That's how you can pass around the session variables,
Chad
On Dec 17, 3:51 am, John Andersen <[email protected]> wrote:
> Hi Daniel,
>
> I can understand that you want to be able to change the language,
> depending on the users wish, so that an italian in england can read
> the site in italian.
>
> But my question is more about the content - will the content be
> dependent on the language or the domain extension - for example:
> [example case]
> An italian in england starts the site at .com and get the english
> content. The italian switches to .it to get the italian content. But
> will the content be from england or from italy? That is, is the
> content dependent on the extension? If yes, then you can't use the
> extension as a language indicator :)
> [/example case]
>
> So your idea of subdomains may be better, in case you in the future
> wants to make the site content dependent on the country (extension)!
>
> Hope the above helps you a little :)
> John
>
> On Dec 16, 3:44 pm, cakeFreak <[email protected]> wrote:> Hey John,
>
> > well the italian site will display news and all other content in
> > Italian, while the .com in English.
>
> > The other solution I have is to use subdomains: it.mysite.com |
> > en.mysite.com
>
> > Daniel
>
> > On 16 Dic, 14:18, John Andersen <[email protected]> wrote:
>
> > > Is that a good idea?
>
> > > What about the content? Will the content be for Italy also, when the
> > > domain is .it?
>
> > > Can you describe your site and what changes will happen to the
> > > content, when a user changes the domain extension?
>
> > > Enjoy,
> > > John
>
> > > On Dec 10, 4:48 pm, cakeFreak <[email protected]> wrote:
>
> > > > Hey guys,
>
> > > > developing a multilanguage application I thought to have different
> > > > languages according to the domain extension:
>
> > > > i.e.
> > > > mysite.com => english
> > > > mysite.it => italian
>
> > > > How can I keep the user authenticated across the 2 domains via
> > > > cookies?
>
> > > > ---------------------------
> > > > I know that with subdomains you can just set the cookie config as
> > > > follows:
>
> > > >http://book.cakephp.org/view/179/Controller-Setup
>
> > > > setting
>
> > > > $this->Cookie->domain = '*.example.com';
>
> > > > ---------------------------
>
> > > > Cheers
>
> > > > Dan
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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