On Thu, 2003-02-27 at 14:36, Heligon Sandra wrote:

I realize that this was sent a long time ago, but as I haven't seen any
other replies I figured that I might just as well say something...

> 
>       I know the definition of a HttpSession but I don't understand well
> how
>       this object is managed ?
>       Who is responsible for the creation of the HttpSession ?
The Servlet container.

>       If two clients use the same machine did they share the same
> HttpSession ?
No, usually not.

>       If two web browsers are opened on the same machine, did they use the
> same HttpSession ?
Depends.
Your session could be tied to a cookie, in which case two browsers
probably won't share the session (usually you have separate cookies for
each browser instance, i.e. process, but that depends on the browser).

If you just open another browser window chances are that cookies are
shared between those windows; depends on the browser, though.

Your session could be tied to the URL (i.e., the session ID is part of
the URL), in which case the session would be shared when using the same
URLs, no matter if you're using a different browser, different machine
etc.


>       I don't understand well the creation or delete of an HttpSession ?
> when did they occur ?
Check the servlet spec.

>       The delete of the HttpSession is done when the servlet engine is
> killed, or when the session
>       timeout is reached. But are they others reasons ?
Session could have been invalidated manually.

>       Concerning the creation of the HttpSession and the association with
> a specific user or machine
>       I don't understand large time there.
>       Is Struts there for something? 
What exactly do you mean?

Hope this clarified things a bit,

        Michael.

-- 
Michael Hanisch                                      [EMAIL PROTECTED]
Red Hat - RH Interchange Inc., Orleansstrasse 4,  D-81669 Munich/Germany
phone: +49 (0)89 206058-53                      fax: +49 (0)89 206058-88


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

Reply via email to