Apache Mod-Python - Re: Commented: (MODPYTHON-59) Add get_session() method torequestobject

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > July 2005 > Re: Commented: (MODPYTHON-59) Add get_session() method torequestobject





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Commented: (MODPYTHON-59) Add get_session() method torequestobject
Graham Dumpleton

2005-07-28, 2:45 am

Jim Gallacher wrote ..
> I think the automatic session unlock needs to stay. It's just too easy
> for the user to forget a manual unlock, deadlock the session and hose
> their server in very short order.


What though is the consequence of the session lock not being reacquired.
Ie., what happens if someone wants to modify the session object and save
it after internal redirect returns.

You might save a deadlock by unlocking the session object, but does it
screw up the case of existing code where session is modified and saved
after internal redirect returns.

Am still for leaving things how they are in this respect, we know the
issues involved and probably just need to beef up the documentation with
big warnings so that people are aware of the internal redirect caveat.

Graham

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com