I have 2 web applications.
User will have the option to enter some details in the UI of first webapp and click on a button which redirects the request to the 2nd webapp.
In the second webapp user performs some operations and on click of complete in the second webapp, the user will be redirected to 1st webapp.
I require session synchronization between these 2 web applications and also the details entered by the user in the first webapp should get loaded after getting redirected from the second webapp.
I would like to know how this session synchronization could be achieved.
What kind of application? What framework do you use? What kind of system? Does it run on one machine? Etc. Please TellTheDetails. It's certainly not Beginning Java but since you without details I've no clue where to move it to.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Joined: Feb 04, 2011
Both webapplications use JavaServer Pages and Servlets. They use weblogic server in common.
Database should not be involved to store the session information.
Also Post and query string methods should not be used.
Hope I have answered your question. let me know if you need any more information.
So both of them are hosted on the same machine, aren't they?
You can use randomly generated hidden form fields, but they are not the best alternative if security is a concern.
Alternatively you can pass encrypted user ids to and fro.