Reputation: 103
I have two different struts2 Applications, tried implementing SessionAware but still other application is not able to use the session variables set by first application. If I am doing something wrong or is it not possible the way I am doing. Thanks
Upvotes: 0
Views: 154
Reputation: 147
application, request, session and page scoped objects are only specific to one application.
Session variable is not the solution for your problem.
Let your Single Sign-On Application send those variables to both the applications as custom attributes. Just like the authenticated user name.
Or use a Database table to share the session info.
Note: You will run into race conditions unless app2 access is initiated from app1.
Upvotes: 1