• Post Reply Bookmark Topic Watch Topic
  • New Topic

sharing session information across applications

 
Saurabh Jain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi list,
We are developing a web application component that is intended to be used by other client web applications through runtime interaction - URL redirection. What are the options we have if we want to keep the client applications' HTTP sessions alive while users are redirected to our application temporarily

Is it possible to for the component application to retain the session id of the client application and hand it over upon transferring the control to the client application

Is it possible for the client application, upon taking control, to restore its http session based on the session id?

There should be something better than relying on an external database, shared files, posting requests between servlets, etc. All of these strike me as some combination of slow, fragile, or just overly complicated.
 
Slava Imeshev
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2EE spec prohibits explicit sharing servlet sessions for a reason. In your case you clearly have data that needs to be shared between different applications. A database is a good place to start with - I don't see why it's not a clean solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!