• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Synchronisation

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Moose Ranch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
See where your hand is? Not there. It's next to this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic