How can I get the attribute of another app of the JSP server's session

in one server, use Tomcat 4.1, have two application at
.../webapps/app1
.../webapps/app2
when use login to application1, it'll set a attribute of session use following code:
session.setAttribute("identitycode", IdentityCode);
session.setMaxInactiveInterval(SessionTimeOut);
and the other jsp programs which at app1 directory will try to get the attribute of this session to identity whether the user had login and get the identity code.
I want to make user just login one time to use application1 and application2, but I didn't know how to get the attribute of session what seted at app1 in app2's programs.
can you tell me how I can do this?

If there are 2 different applications like app1 & app2, U need to use:
application.setAttribute() method.(not session.getAttribute).
u need to maintain one collection like hash table which will store the mappings of User & their IDs . U can then get the user details from app1 to app2

Similar Messages

Maybe you are looking for

  • My Bill Payment became so high all of a sudden after renewing!

    Around November 3 I reneweg my account for another 2 years getting some upgrade and discounts in the process. Before I renewed was paying about $165 per month for my three fios services. Around late November my upgrades and discounts would take affec

  • IWeb 09 color output messed up

    Hi, I have an iWeb site set up so that an iFrame photo gallery from another site is embedded inside my iweb page. Everything worked beautifully in iweb08. I have set up the embedded gallery so that the background colors are the same as the iweb page

  • Content Server installation on MaxDB datbase

    Hi, I am going to install Content Server 6.40 on MaxDB datbase 7.6.03, can any body guide me in the below points: 1) Shall I install the below in a single Drive in my server like (C:.....etc)     a) MaxDB Independent Programe Drive  b) MaxDB Independ

  • Problems with backlight coming on

    I just got a new iPod classic and it works differently than my old one did. If I am currently playing a song, with the switch on top set to the locked position, unlocking it does not turn on the backlight. If nothing is playing, however, and I turn t

  • Increase the length of a character array

    hello, i need to increase the length of my character array.i tred using ArrayUtils class which supports setSize method to set the size of a previously declared character array.But,i have no idea of how to import that class.i meant 'which package to u