Thanks for the clarification on session behavior. I tried to unlock the session (or to forget it) in the controller but it seems requests from the same user are still handled sequentially. Is it possible to have the same user request two pages at the same time or am I missing something?
On Mar 22, 8:27 pm, Massimo Di Pierro <[email protected]> wrote: > web2py does not know whether the session is going to change or not so it > locks even if does not save it. To change it call session._unlock(request) > > On Mar 22, 2011, at 2:18 PM, Anthony wrote: > > > On Tuesday, March 22, 2011 2:39:45 PM UTC-4, Massimo Di Pierro wrote: > > The only caveat is that - unless you unlock them - session are locked. > > Therefore the same user cannot request two pages at the same time. > > This in order to guarantee data integrity in sessions. > > > With the new changes in 1.94.5, is the session file still locked for every > > request, even if nothing is saved to the session, or does it only get > > locked if something is actually saved/changed? > > > Thanks. > > > Anthony > >

