Madhav Bhargava wrote:
I was going thru the struts source code and was in particular reading the
way they have implemented the synchronizer token pattern for preventing
multiple submits on transacional pages.

I saw that they have synchronized on session ID attribute. Is it possible
that multiple session share the same session ID? There is noting in the
servlet API that mandates it.
All I know is from tinkering around in the source myself. I think the idea behind a session facade is to provide a bridge between your typical session (want a session, get a session), and expected behavior in a clustered or multi-VM environment. In the latter case you might have two physical computers that process two different requests from the same user (with the same ID). The session needs to be serialized and sent between computers so each computer behaves as if they know about the original session equally well. Rather than sending every bit of session information to every machine (or in smaller environments, every process), the "session facade" handles management of session information in case this session information needs to be shared with another provider.

Wow, that was fun. Anyways, while two or more users WON'T share the same session ID, the stuff still needs to be synchronized. One web request might be writing information to the session while another is trying to read it to service a subsequent request from the same user.

- Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to