I have 2 Java EE applications which need to share some common user related data of a logged in user.
Is there anyway by which I can store this data in the session from
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
Take a look at Single Sign On functionality.
http://en.wikipedia.org/wiki/List_of_single_sign-on_implementations
Two separate Java EE 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.