I have developed a struts2 application with login feature. My java code for this is
Map session = ActionContext.getContext().getSession();
session.put("login", "true");
session.put("user", username);
and I will check if the user already logged in jsp as
<s:if test="#session.login != 'true'">
Now I want to develop another application. As the users will be same I do not want to ask them to login again.
I want to access the session of application1 in application2. How to do this. Please help.