[web2py] Share sessions not working

2021-09-11 Thread dirman
In my case, sessions are not shared in my two apps main and sub domain session.connect(request, response,masterapp='test', db=db) response.cookies[response.session_id_name]['domain'] = '.test.com' routers = dict( BASE=dict( default_controller='default', default_function='index',

[web2py] Share sessions

2020-10-13 Thread 'Annet' via web2py-users
In the model files of my applications I have these lines of code because I want to share the session, so menus etc. reflect the correct state and users need not login twice # share the session cookie among all subdomains under the main domain response.cookies[response.session_id_name]['domain']