Someone mentioned this same problem earlier this year. I posted a small
servlet that lets you do "sub-sessions" for a browser. It's a hack, but
the idea is that you embed a session ID in the path and have a servlet
filter the ID back out of the path and store it in the request.
Here's a link to the original message:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0004&L=jsp-interest&P=R21820&D=0&H=0&O=T&T=1
Mark
>
>
> Hi!
> I'm not sure if I understood you correctly about that counter, but the
> problem is that
> when I open a browser and then I choose File->New Window, I get two
> browsers, that
> have two identical session ids. (This situation does not exist, when I
> open new browser
> by running it from command line or an icon) So I'm not able to
> distinct, which instance
> of the browser sends request to my servlet. And as the dialog with my
> servlet is of
> sequential type, it matters for me which response was sent to which of
> instances.
>
> Maybe there is a possibility just to block the opening of a new
> instance in the
> same browser.
>
--
Mark Wutka
Author of Special Edition Using Java Server Pages & Servlets (ISBN: 0789724413)
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets