permaculture playing cards
The moose likes Beginning Java and the fly likes Session Synchronisation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Session Synchronisation" Watch "Session Synchronisation" New topic

Session Synchronisation

Moose Ranch

Joined: Feb 04, 2011
Posts: 4
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.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

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.
Moose Ranch

Joined: Feb 04, 2011
Posts: 4
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.

Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

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.

|Asking Good Questions|
I agree. Here's the link:
subject: Session Synchronisation
jQuery in Action, 3rd edition