views:

134

answers:

3

Hi,

I have 2 J2EE applications which needs to share some common user related data of logged in user. Is there anyway by which i can store these data in session from one application and retreive that data in second application.. ie. something similar to sticky session in .NET

Any help appreciated..

+3  A: 

Take a look at Single Sign On functionality.

http://en.wikipedia.org/wiki/List_of_single_sign-on_implementations

saugata
SSO is th best option i agree.. But then i was actually searching for some work around for the time being. +1 for SSO but.. :)
Richie
+4  A: 

Two separate J2EE applications will be having separate session data. If they are on the same domain and you want to share couple of attributes, then you could use a cookie and set attributes into the cookie and read them in each web app.

JoseK
Thanks..Even though probably not the best of practices, i guess this is worth a try than the proved SSO style..cheers mate :)
Richie
+1  A: 

Single sign-on is the way to go (as prescribed). OpenId http://en.wikipedia.org/wiki/OpenID (Providers include Google, Yahoo, MSN etc) is worth a look

Calm Storm
+1 for SSO idea..
Richie