?
Solved

Sharing session object across Web Components in J2EE

Posted on 2003-10-31
4
Medium Priority
?
794 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 180 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

Industry Leaders: 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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 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