Hi Anthony,

Thanks for your reply.  

I added 

response.cookies['session_id_cms']['domain'] = '.yourdomain.com 
<http://www.google.com/url?q=http%3A%2F%2Fyourdomain.com&sa=D&sntz=1&usg=AFQjCNG91qkPq9-_8IGu9ZEj18kLwKSmrg>
'

to a model file in the cms app. And in the init app I have

session.connect(request, response, masterapp="controlpanel")

The apps do share the session cookie both locally and in production:

response.session_id_name


returns session_id_cms

However, locally auth.is_logged_in() returns True but in production it
returns False and auth.user returns None.

I have no idea what causes the difference in behaviour. I hope you do.


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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to