No prob. I deleted all Recent history in browser, and tried again with the same result. Pretty sure it's not about cookies :)
On Thu, Dec 23, 2010 at 1:20 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > I cannot today but I will tomorrow. ;-) > > On Dec 22, 6:18 pm, Marin Pranjic <marin.pran...@gmail.com> wrote: > > Hi Massimo, > > > > I had that in mind already. And doublechecked. No sessions in folders. I > > cleared the session table using appadmin on "shared". > > Resulting: > > Stil cannot login from "app1" to account created by "shared". > > I just created another account in "shared" registration forum. Cannot > login > > from "app2". > > > > You should try to reproduce, since it takes only few minutes. > > > > On Thu, Dec 23, 2010 at 1:07 AM, mdipierro <mdipie...@cs.depaul.edu> > wrote: > > > This smells like a bug or web2py is picking up some leftover sessions > > > from cookies. > > > > > Try this: delete everything in the sessions/ folder of the three apps. > > > > > If you still have the problem I will try reproduce the problem and fix > > > it. > > > > > Massimo > > > > > On Dec 22, 5:40 pm, Marin Pranjic <marin.pran...@gmail.com> wrote: > > > > Hi there, > > > > I need to make few apps that will share sessions. > > > > For testing purposes, i have applications "shared", "app1" and > "app2". > > > > > > In application "shared", i have: > > > > > > db = DAL('sqlite://storage.sqlite') > > > > session.connect(request, response, db = db) > > > > (...) > > > > > > in applications "app1" and "app2" i have: > > > > > > db = DAL('sqlite://../../shared/databases/storage.sqlite') > > > > session.connect(request, response, db = db, masterapp = 'shared') > > > > (...) > > > > auth.define_tables(migrate = False) > > > > (...) > > > > > > folders app1/databases and app2/databases do not have any databases, > > > > which means they use database from "shared". Did that part right :) > > > > > > The funny part starts here: > > > > If I register new user via application "shared", I cannot login from > > > > "app1" nor "app2", only from app "shared". Once I log in application > > > > "shared", I'm logged in all three applications. > > > > If I register new user via applicaton "app1", i cannot login from > > > > "shared", but can from both "app1" and "app2". After loggind, the > same > > > > situation as above, I'm logged in all three applications. > > > > > > I guess i won't have any headaches with this one, because application > > > > "shared" will be 'hidden' and users will not register accounts using > > > > registration form on that app. It should be enough, but that does not > > > > solve the problem. I created another application "app3", and managed > > > > to login to all accounts which I made from "app1" or "app2". Could > not > > > > login to accounts from "shared" (just wanted to make sure I got it > > > > right). > > > > > > I don't know if this is a web2py bug or a feature, and if it is a > > > > feature, why & howto fix (if possible). > > > > > > p.s. I used applications generated by framework, i edited only the > > > > lines mentioned above. > > > > >