Robert S. Sfeir wrote:
> Hum I was under the impression (At least in the Orion server, and it didn't
> seem like it was Orion specific) that you can set the sessions to be shared
> between apps running in the same app server.  Must be vendor specific I
> guess!

Yes, the spec spells out that the scope of a session is one application:

   SRV.7.3 Session Scope
   HttpSession objects must be scoped at the application (or servlet
   context) level. The underlying mechanism, such as the cookie used to
   establish the session, can be the same for different contexts, but
   the object referenced, including the attributes in that object, must
   never be shared between contexts by the container.

Hans

> On 7/16/02 12:38 PM, "Hans Bergsten" <[EMAIL PROTECTED]> wrote:
>
>
>>Hiren Dossani wrote:
>>
>>>hello,
>>>
>>>i am setting a session attribute in a jsp page. the location of this jsp page
>>>is in webapps/base directory of the web server.
>>>
>>>i am not too sure if the same session attribute could be retrieved in a
>>>servlet which is in another context. e.g. the servlet location is in
>>>webapps/esab/WEB-INF/classes directory of the web server.
>>>
>>>thanks for all your help.
>>
>>No, sessions are per application; servlets and JSPs in one app can not
>>see the session data of another app (that would be a security risk).
>>If you need to share session data between apps, you have to do so
>>explicitly (e.g., store it in a database, file or EJB, that's available
>>to both apps).
>>
>>Hans
>>--
>>Hans Bergsten           [EMAIL PROTECTED]
>>Gefion Software         http://www.gefionsoftware.com
>>JavaServer Pages        http://TheJSPBook.com
>>
>>===========================================================================
>>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://archives.java.sun.com/jsp-interest.html
>>http://java.sun.com/products/jsp/faq.html
>>http://www.esperanto.org.nz/jsp/jspfaq.jsp
>>http://www.jguru.com/faq/index.jsp
>>http://www.jspinsider.com
>>
>
>
> ===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>


--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
JavaServer Pages        http://TheJSPBook.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to