Restoring web session in struts2
Posted
by bozo
on Stack Overflow
See other posts from Stack Overflow
or by bozo
Published on 2010-04-14T17:10:58Z
Indexed on
2010/04/14
17:13 UTC
Read the original article
Hit count: 300
Hi,
I have a classical scenario of a website and payment gateway integration, where the request for payment is sent to payment processor, and the payment processor calls back my application once it's done with some parameters I passed to it in the original request.
Among parameters, we pass jsessionid and we expect that when the remote server makes request to our server (via customer browser redirect to our server) that the session will be the same as the session used to send the initial payment request. This does not happen, we have two different sessions, although the payment processor includes our original jsessionid in the request to us (https://blabla/?jsessionid=something).
How should we go about recreating a session in struts2, in the only thing that connects the 'OLD' and 'NEW' session is the jsessionid in the request URL?
Any ideas? Is this possible at all or is the 'OLD' session data deleted when the user moves away from our server onto a completely different domain of a payment processor with their data-entry form? This would explain our innability to recreate the session.
Thanks a lot for your replies.
© Stack Overflow or respective owner