On Wed, 2005-11-16 at 10:11 +1000, Badai Aqrandista wrote:
> But I need to know if a request has been cancelled. The problem is that
I
> need to release the session lock when someone click submit button before
the
> page is fully loaded, otherwise the next page won't load because it is
> waiting for the session lock to be released by the previous process that
has
> been cancelled before releasing it.
Why are you using locking with your sessions? Are you doing something
that truly requires it? You already have atomic updates if you use
database-backed session storage.
Actually, the locking I meant is the Apache::Session's lock. I am guessing
that A::S lock blocks the second page to be loaded if the first page hasn't
finished loading.
In other words, look for a way to avoid the root of the problem: doing a
slow operation and keeping the session locked the whole time.
I'll look into that. Thanks...
---
Badai Aqrandista
Cheepy (?)
_________________________________________________________________
REALESTATE: biggest buy/rent/share listings
http://ninemsn.realestate.com.au