----- Original Message -----
From: "James Bond" <[EMAIL PROTECTED]>

> If i want to support multiple simultaneous sessions
> from multiple browser windows (but same browser) how
> would i be distinguishing between the logically
> separate user sessions?

You want to have more than one session per browser. So you have to prevent
the visibility of session of one window of a browser from another window of
the browser.


> I mean what are the ways of handling this.
> eg: http sessions, URL rewriting, hidden tags, i know
> cookies dont work ? are there any better ways here
> agian

Session Cookies are shared across the windows of the browser. So they are
definately ruled out.
URL rewriting ( forced by turning off cookies on the servlet container) is
one way and in my opinion the best way to go.
Hidden tags can be used, but they will force you to go in for rolling your
own session management. That is the reason I think this is not a good way to
go.


> basically i am interested in what the logic behind
> handling this kind of issues would be ?

when the method getSession(true) is called, the servlet container checks if
it has received a valid session id. If a valid session ID has not been
received, then it creates a new session with a new session id.
So the main issue as mentioned above is to prevent the visibility of session
id of the session across windows.

The only problem is that all the links/action tags in your application have
to pass through the response.encodeURL() method.


cheers,
Gokul

>
> Vithal
>


The Information contained and transmitted by this E-MAIL is proprietary to
Wipro Limited and is intended for  use only by the individual or entity to which
it is addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If this is a forwarded message,
the content of this E-MAIL may not have been sent with the authority of the
Company. If you are not the intended recipient, an agent of the intended
recipient or a  person responsible for delivering the information to the named
recipient,  you are notified that any use, distribution, transmission, printing,
copying or dissemination of this information in any way or in any manner is
strictly prohibited. If you have received this communication in error, please
delete this mail & notify us immediately at [EMAIL PROTECTED]

Reply via email to