How to keep session information while redirecting to another application on another server ?
posted 4 months ago
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 ?
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...