On Tuesday, October 22, 2013 6:33:57 PM UTC+2, Annet wrote:
>
> Thanks for your reply.
>
> do those apps share the same session ?
>>
>
> No, they don't share the same session.
>  
>
>> every app in web2py by default doesn't share the session, so if you're 
>> logged in in the first, it doesn't mean you're logged in into the other.
>>
>
> I haven't given sessions much thought yet, I read this paragraph of the 
> book http://web2py.com/books/default/chapter/29/04/the-core#session
> but have not yet figured out which functions do not need the session and  
> whether to store sessions to the file system or in the database.
>
> I have three applications one contains the model files and static files, 
> one called init which just retrieves data from the database and one
> called cms which creates, retrieves, updates and deletes data in the 
> database.
>
> In the book I read:
>
> If you want two or more applications to share sessions, set masterapp to 
> the name of the master application.
>
> In my case that would be the cms application, but that only works when I 
> store sessions in the database, right?
>
If they need to share the session, you need to choose one of them as a 
"master".

If you do 
session.connect(request, response, masterapp="cms")
they work even if you don't have sessions stored into the database.

-- 
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/groups/opt_out.

Reply via email to