[web2py] Re: session.connect()

2019-03-28 Thread 'Annet' via web2py-users
Hi Anthony, Thanks for your reply. I added response.cookies['session_id_cms']['domain'] = '.yourdomain.com ' to a model file in the cms app. And in the init app I have session.connect(request,

[web2py] Re: session.connect()

2019-03-27 Thread Anthony
Have you tried adding the following in a model file of the "cms" app: response.cookies['session_id_cms']['domain'] = '.yourdomain.com' That should share the session cookie among all subdomains under the main domain. Anthony On Wednesday, March 27, 2019 at 4:46:24 AM UTC-4, Annet wrote: > > I

[web2py] Re: session.connect() on 127.0.0.1 or on domain.

2014-07-01 Thread Anthony
By default the session cookie will not be shared across subdomains. Try adding something like the following in a model file in both apps: response.cookies[response.session_id_name]['domain'] = '.leonexus.com' Anthony On Tuesday, July 1, 2014 4:07:17 AM UTC-4, Annet wrote: I have a front-end

[web2py] Re: session.connect() on 127.0.0.1 or on domain.

2014-07-01 Thread Annet
Hi Anthony, Thanks for your reply. I added response.cookies[response.session_id_name]['domain'] = '.leonexus.com' to both apps and now the menus display the correct items. Best Annet. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -