Solved

Sharing session object across Web Components in J2EE

Posted on 2003-10-31
4
780 Views
Last Modified: 2008-03-17
Hi,

This question is really urgent and I do hope someone can help me out! Thanks!

I'm using the J2EE architecture to implement an E-commerce website.

I have a few subsystems to implement for eg: Member, Shopping, Forum, Auctions.

I will be creating a single Application using the Deploytool, and add individual web components to this application. Each webcomponent will contain the jsps and servlets for each subsystem.

Say, a client logs into the system through the Member webcomponent, I can't access the session object created for this client in the other webcomponents. Hence, the client(user) can't do Shopping, Forum ,Auctions etc..even though he had already logged in.

how may I share this session object across the differrent webcomponents? Thanks loads for any help rendered..

Capricious
0
Comment
Question by:capricious
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Expert Comment

by:f_98
ID: 9657716
try using cookies to track the sessions

http://www.developer.com/java/other/article.php/616801
0
 
LVL 14

Accepted Solution

by:
kennethxu earned 60 total points
ID: 9659170
>> how may I share this session object across the differrent webcomponents?
the answer is NO, you cannot.

the alternative solution is to use standard J2EE security. see this:
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20776979.html#9620196
0
 

Author Comment

by:capricious
ID: 10751417
Hi all,
Sorry for not returning back to the question, until I got a "warning" in my email. Sort of forgot about it. My bad.
Thanks for the help rendered though!

capricious.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question