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 have two applications one init and one cms. In init I have
> a few functions for which the user needs to be logged in.
> These functions only read from the database they do not
> write to the database.
>
> I thought I could use
>
> session.connect(request, response, masterapp="cms")
>
> to share the fact that a user is logged in with the init
> application, on localhost it works however, in production
> where init and cms have their own subdomain it does
> not work.
>
> Are there additional setting to get this to work in production?
>
>
> Kind regards,
>
> Annet
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to