Forums Register Login

How to keep session information while redirecting to another application on another server ?

+Pie Number of slices to send: Send
Hello All ,

I am working on banking application. There is a situation when we are redirecting to a different application installed on a different server. We are using sendRedirect to configurable URL.
Now there is a requirements to send this different application the session information while redirecting.

I understand that there is a new request / response send from the browser while redirecting to a different URL. So there is a new session and all the existing session info is lost.

What is the solution to implement this feature - may be without sendRedirect ?
+Pie Number of slices to send: Send
Hi Ramy, since it is a completely different application on a different server, I don't think you'll be able to share the session directly. You'll need to have your own mechanism like maybe persist the session information (in file or database) and read it in the other application or something similar...
+Pie Number of slices to send: Send
Thanks Ankit for your response.

But I am not the one who needs this information. It is a different application with a different vendor (owner). That is why they can't access our back end even I persist it.
+Pie Number of slices to send: Send
You'll have to develop some kind of mechanism to send them this data. Either a common database or provide them a service which they can call to get session data or something else...
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 818 times.
Similar Threads
difference between request.getRequestDispatcher(),response.sendRedirect()
Send redirect
Session Management
Test 252: Mock exam
Differences btwn (response.sendRedirect) and (Requestdispatcher.forward)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:52:41.