[英]I am losing session data when being redirected from Payment GateWay
I am using Spring MVC for handling requests and responses.我正在使用 Spring MVC 来处理请求和响应。
I'm putting data related to a selected product and customer details in session and making the user navigate to the payment gateway.我将与所选产品和客户详细信息相关的数据放入会话中,并使用户导航到支付网关。
When the payment was successful, the user is redirected back to my site.付款成功后,用户将被重定向回我的网站。 At that point, the session data is lost.此时,会话数据丢失。
Please help me in this problem.Thanks in advance请帮我解决这个问题。提前致谢
The payment gateway could be on a different domain (www.paymentgateway.com) from you site (www.site.com).支付网关可能与您的站点 (www.site.com) 位于不同的域 (www.paymentgateway.com)。 Since the session is normally bound per domain/per context path, you could be losing your session when changing the domain.由于会话通常按域/每个上下文路径绑定,因此在更改域时您可能会丢失会话。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.