jsp - How to share a session in two web applications hosted at two different application servers? -


i trying interact payment gateway, want share session can keep track of whether user payment processed payment gateway 1 whom request made.

i explain below:

1. http://localhost:7080/requesterapp in websphere application server 1 2. http://localhost:8090/paymentapp in websphere application server 2 

i redirecting user payment gateway via submitting html form.

so how make sure request made user1 payment http://localhost:7080/requesterapp http://localhost:8090/paymentapp processed same user?

should handled via session?

the question not payment oriented, rather architectural one.
server1 needs pass information server2, , communication needs done in backend.
assuming 2 servers host different applications, websphere session replication not solution. need requesterapp call paymentapp in backend , let know user coming way. communication can made via http or rmi or whatever technology pick, long secured (ip whitelisting).

so:

  1. requesterapp notifies paymentapp user "james dean" hit it's servers. required parameters passed @ point.
  2. paymentapp stores data @ end , returns uuid token
  3. requesterapp renders form user, token embedded hidden field
  4. user submits form , hits paymentapp
  5. paymentapp retrieves user data using token. if needed, may ensure it's same user ip, cookies, etc.

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -