Hi dirman
You probably have this figured out by now, but I bumped into a similar 
issue where sessions were not working. I think the reason is because I am 
not using the Auth module to validate users (and keep them logged in for 30 
days). 

Anyway, I copied the file:  ..\application\examples\models\session.py into 
the models folder of my application and sessions started working.

-Rob

On Saturday, September 11, 2021 at 10:46:52 AM UTC-4 dirman wrote:

> 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',
>     domains={
>         'test.com':'redirect_to_www_test',
>         'www.test.com':'test',
>         'manage.test.com <http://panel.test.com/>': 'manage_test'
>     },
>   )
> )
>
>
> Any help is appreciated
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e1609ec7-c402-42d1-a342-8ca8d219e1b7n%40googlegroups.com.

Reply via email to