-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
David Warnock wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> Hi,
>
> We are using JServ and it is all working fine (on Windows and Linux).
>
> I am uncertain on an aspect of sessions (and can't see the answer in the
> FAQ's or the books I have).
>
> If a user opens two browser windows and connects to the same servlet
> twice do they get two separate sessions or only one?
>
> ie If I open 2 windows to Alta-Vista I can work with 2 independant
> searches at the same time. If this were written using servlets would
> there be 2 separate sessions of 1 sesssion with some clever code to keep
> track of the search criteria via the url.
>
> I would also like to know if the answer is true for JServ only or all
> servlet engines.
>
> Thanks
>
> Dave
>
The answer, unfortunately, varies based on which browser you are using,
whether you are using cookies or URL rewriting to maintain session state,
and how the second window was opened. Even more unfortunately, it's not
really up to the servlet engine to control, because windows are a
client-side thing.
In most circumstances, you will find that the two windows are running in
the same session, and you will need to use additional techniques (such as
hidden fields in your forms) to keep the two search criteria, or whatever,
separate.
Craig McClanahan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]