users@glassfish.java.net

Re: HttpSession Sharing across multiple web applications

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 11 Aug 2009 10:26:43 -0700

Lasitha,

On 08/11/09 01:49, Lasitha Kodikara wrote:
>
> HI,
>
>
>
> Is it possible to share a HttpSession among several web apps?
>
>
>
> Example, I store session.setAttribute("EMP",employee); in web app 1
> and retrieve it in web app 2 by session.getAttribute("EMP");
>

No, this is not possible: http sessions (and their associated session
managers)
are scoped to web applications.

Jan

>
>
> Thanks in advance,
>
> Best Regards,
>
> Lasitha
>
> *******************************************************************************************************************************************************************
>
> "The information contained in this email including in any attachment
> is confidential and is meant to be read only by the person to whom it
> is addressed. If you are not the intended recipient(s), you are
> prohibited from printing, forwarding, saving or copying this email. If
> you have received this e-mail in error, please immediately notify the
> sender and delete this e-mail and its attachments from your computer."
>
> *******************************************************************************************************************************************************************
>