• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Ramy Nady
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ankit Garg
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic