[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
Yes, you are right! I still work with only response.cookies[response.session_id_name]['domain'] = ".domain.ru" On 12 апр, 00:22, Anthony wrote: > On Monday, April 11, 2011 2:05:34 PM UTC-4, LightOfMooN wrote: > > > No, it just a single application > > > I just add to my db.py: > > response.cookie

[web2py] Re: subdomain auth

2011-04-11 Thread Anthony
On Monday, April 11, 2011 2:05:34 PM UTC-4, LightOfMooN wrote: > > No, it just a single application > > I just add to my db.py: > response.cookies[response.session_id_name]['domain'] = ".domain.ru" > session.connect(request,response,masterapp='myapp') If it's just one application, I'm thinki

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
No, it just a single application I just add to my db.py: response.cookies[response.session_id_name]['domain'] = ".domain.ru" session.connect(request,response,masterapp='myapp') On 11 апр, 23:39, Anthony wrote: > Cool. What exactly did you do? Is it just a single application, or did you > have to

[web2py] Re: subdomain auth

2011-04-11 Thread Anthony
Cool. What exactly did you do? Is it just a single application, or did you have to use the multi-application method Massimo suggested? On Monday, April 11, 2011 12:42:50 PM UTC-4, LightOfMooN wrote: > Oh, Anthony, Massimo > It works! > Thanks you a lot! > > On 11 апр, 22:29, Massimo Di Pierro

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
Oh, Anthony, Massimo It works! Thanks you a lot! On 11 апр, 22:29, Massimo Di Pierro wrote: > True. So perhaps this should do it: > > response.cookies[response.session_id_name]['domain'] = > ".habrahabr.ru" > session.connect(request,response,masterapp='') > > where masterapp is the name of th

[web2py] Re: subdomain auth

2011-04-11 Thread Massimo Di Pierro
True. So perhaps this should do it: response.cookies[response.session_id_name]['domain'] = ".habrahabr.ru" session.connect(request,response,masterapp='') where masterapp is the name of the one of the two apps that will be in charge of authentication. On Apr 11, 11:25 am, Anthony wrote: > Ac

[web2py] Re: subdomain auth

2011-04-11 Thread Anthony
According to the book, here's how web2py sets the session cookie: response.cookies[response.session_id_name] = response.session_id response.cookies[response.session_id_name]['path'] = "/" Perhaps it would work with subdomains if you added (maybe in a model file): response.cookies[response.s

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
We just use web2py auth in our site, and not manual manage cookies. On 11 апр, 21:56, Mengu wrote: > are you saving the cookies in cities.ru domain but not per subdomain? > > On Apr 11, 6:40 pm, LightOfMooN wrote: > > > > > > > > > But that is in all browsers (we try IE, FF, Chrome, Safari). > >

[web2py] Re: subdomain auth

2011-04-11 Thread Mengu
are you saving the cookies in cities.ru domain but not per subdomain? On Apr 11, 6:40 pm, LightOfMooN wrote: > But that is in all browsers (we try IE, FF, Chrome, Safari). > I have seen many sites with subdomain structure, where there are one > login for all site structure. > For example, habraha

[web2py] Re: subdomain auth

2011-04-11 Thread LightOfMooN
But that is in all browsers (we try IE, FF, Chrome, Safari). I have seen many sites with subdomain structure, where there are one login for all site structure. For example, habrahabr.ru, where subdomain is username. http://alexkucherov.habrahabr.ru/ http://lugansk.habrahabr.ru/ http://devart.habrah

[web2py] Re: subdomain auth

2011-04-11 Thread Massimo Di Pierro
The problem I can thnk of is that browser perceives them as different domains and does not share cookies required for session info. On Apr 11, 12:35 am, LightOfMooN wrote: > No solutions for that? > > On 10 апр, 23:18, LightOfMooN wrote: > > > > > > > > > Hello. > > I have site based on subdomai

[web2py] Re: subdomain auth

2011-04-10 Thread LightOfMooN
No solutions for that? On 10 апр, 23:18, LightOfMooN wrote: > Hello. > I have site based on subdomains, but all of them are the one project. > > for example: > > city1.cities.ru > city2.cities.ru > city3.cities.ru > > if I login in one subdomain, I should login else in all of others. > > How to f