----- Original Message -----
From: "Bo Xu" <[EMAIL PROTECTED]>

> I just try to add a note from the directions of several books and
> several emails in Servlet-List:
>
> *  HttpSession.setAttribute(...)/getAttribute(...)
>     but from my working with jakarta-tomcat-4.0-b1(StandAlone),
>     I find it works in the same webapp, but from my work, it seems
>     it doesn't work between two webapps in the same Servlet
>     container in the same computer.

This is exactly the behaviour mandated by the specs. Spec ver 2.3PFD.
section 7.3 states
"HttpSession objects must be scoped at the application / servlet context
level. The underlying mechanism, such as the cookie used to establish the
session, can be shared between contexts, but the object exposed, and more
importantly the attributes in that object, must not be shared between
contexts."


Regds,
Gokul

>
> Bo
> Feb.15, 2001

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to