I have a couple JsonStores, GroupingStores and a couple TreeLoaders. And some Ajax Requests on button handlers. On back-end i'm using a specialized session manager that changes session id on each request. So simultaneous requests breaks the session.

To prevent it, i'm using beforeload & load handlers to suspend requests if there is an active one for each request-maker. Is this a good way?

I'm looking for a centralized way to manage all http requests. Is there a base class that makes those requests?

If there is, i can extend it to suspend requests if there is an active one.

or, Is there any other approaches that i should consider without altering my session management?

thanks already...