But is there a way to push session cookie for multiple domains at once?
Something like:

for domain in [mydomain.com, mydomain.de, mydomain.ru, mydomain.fr]:

    session_id = generate_session_id(domain)

    ...

    response.push_cookies[session_id]['domain'] = domain


понедельник, 28 декабря 2015 г., 5:36:42 UTC+5 пользователь Anthony написал:
>
> The problem is the browser will not send the session cookie to the new 
> domain, so web2py has no way to know the user has been logged in.
>
> On Sunday, December 27, 2015 at 3:12:48 PM UTC-5, LightOfMooN wrote:
>>
>> Hello.
>>
>> I have multiple domains, that slice *one *app by languages.
>> For example:
>> mydomain.com
>> mydomain.fr
>> mydomain.de
>> mydomain.ru
>> etc
>>
>> If the user login to app in mydomain.com and then want to read it in 
>> Deutch, he switches to DE-version with redirecting to mydomain.de, but, 
>> unfortunately, he will not be logged in mydomain.de.
>>
>> Is there a way to make cross-domain auth with web2py, that allows users 
>> to login/logout to all of some specified domains at once?
>>
>

-- 
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