[Zope-dev] ZopePublication Competing writes/reads

Satchidanand Haridas satchit at zope.com
Wed Oct 22 10:44:58 EDT 2008


What version of zope.session are you using?

A fix (using zope.minmax) for ConflictErrors related to the update of  
access time on sessionData object was committed into zope.session in  
rev76899. Not sure if that solves this problem of conflict errors that  
you see, but if you are using a version of zope.session prior to  
r76899, upgrading may make those problems go away.

Regards,
Satchit

On Oct 22, 2008, at 10:27 AM, Carsten Senger wrote:

> Hermann Himmelbauer schrieb:
>> Yes, I can reproduce this any time. But I looked into it further,  
>> and it's
>> quite weird:
>>
>> - If I access the site without having logged in (= a new cookie/ 
>> session is
>> created), it does not happen.
>> - If I login, pressing F5 rapidly triggers these warnings.
>> - BUT: If I logout and press F5, the warnings are still there.
>> - If I close the browser/reopen it (-> New session), the warning is  
>> gone.
>>
>> So it seems, once the session stores/has stored login information,  
>> this object
>> leads to a conflict. Interesting - but I still don't know what this  
>> object
>> is.
>
> You should inspect what happens in zope.session to find out what  
> happens
> there. From your description and the purpose of sessions probably this
> happens:
>
> Everytime you access you site the session is checked for  
> authentication
> informations. Sessions have a set timeout. zope.session has to write a
> new timestamp into the session so it can drop the session after the
> timeout. This can cause conflicts.
> When you log out the authentication informations are removed from the
> session, but the cookie an the server side session are still there.  
> The
> timestamp is updated with every request.
> If you close your browser the cookie is removed by the browser. Until
> you authenticate zope does not create a new session/set a new cookie.
>
> I'm quite sure that you can't get conflicts with zope.session if you  
> use
> two different sessions at the same time and conflicts with one session
> are rare enough and with zope's conflict resolution no problem (unless
> you press F5 really fast)
>
> ..Carsten
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )




More information about the Zope-Dev mailing list