Forums Register Login

Sharing HttpSession across multiple web applications

+Pie Number of slices to send: Send
May I know how to enable multiple web applications in the same server to share the same session data?

I have webapp1 and webapp2 deployed in the same WebLogic Server (I am using WLS 8.1 sp3). When the user logon from webapp1, the session is ceated. But
when the user navigate to webapp2, another new session is created. I am using HttpSession.getSession() for both applications.

Thanks,
Alamak
+Pie Number of slices to send: Send
Hi,

The HttpSession object is scoped at the application ( or servlet context level) , therefore I think there is no way to share session data betwwen 2 web application even though they are deployed in same servlet container.

Thanks
+Pie Number of slices to send: Send
Ensuring that one web application can't access data belonging to another is part of the security concious design of the API. The designers wanted a situation in which an application can be installed in any server without worrying about conflicts.

Bill
Hoo hoo hoo! Looks like we got a live one! Here, wave this tiny ad at it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1970 times.
Similar Threads
How to pass Session object between two web apps
passing session values between two web application
Including a resource from another web application
How to share value between mutiple war files?
Sharing of session objects across two web applications running on same server instance
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:40:18.