The case is that when I work with sub-domain (i.e. my.example.com),
set some session variables and then go to some other domain (i.e.
www.example.com) the session is empty. No cookie is issued as well.
Have anyone faced this issue before and what's the best practice to
keep the session persistent across sub_domains
> The case is that when I work with sub-domain (i.e. my.example.com), > set some session variables and then go to some other domain (i.e. > www.example.com) the session is empty. No cookie is issued as well.
> Have anyone faced this issue before and what's the best practice to > keep the session persistent across sub_domains
Haven't got time to give it a deep look, but plug and play method
didn't work.
Beaker evolved a lot lately so plobably this hack won't work with the
latest version.
It'll be great if probably Ben could take a look and hint on the best
practice way to achieve this.
On Aug 21, 5:53 pm, "Cezary Statkiewicz" <c.statkiew...@gmail.com>
wrote:
> 2008/8/21 Pavel Skvazh <pavel.skv...@gmail.com>:
> > The case is that when I work with sub-domain (i.e. my.example.com),
> > set some session variables and then go to some other domain (i.e.
> >www.example.com) the session is empty. No cookie is issued as well.
> > Have anyone faced this issue before and what's the best practice to
> > keep the session persistent across sub_domains
> The case is that when I work with sub-domain (i.e. my.example.com), > set some session variables and then go to some other domain (i.e. > www.example.com) the session is empty. No cookie is issued as well.
> Have anyone faced this issue before and what's the best practice to > keep the session persistent across sub_domains
You need to specify to use just the last portion (.example.com) for the beaker cookie. You can set this in your ini file with: beaker.session.cookie_domain = .example.com
> On Aug 21, 2008, at 6:13 AM, Pavel Skvazh wrote:
> > The case is that when I work with sub-domain (i.e. my.example.com),
> > set some session variables and then go to some other domain (i.e.
> >www.example.com) the session is empty. No cookie is issued as well.
> > Have anyone faced this issue before and what's the best practice to
> > keep the session persistent across sub_domains
> You need to specify to use just the last portion (.example.com) for
> the beaker cookie. You can set this in your ini file with:
> beaker.session.cookie_domain = .example.com