简体   繁体   English

在域和https / http之间保存PHP会话变量

[英]Saving PHP session variables between domains and https/http

I have a checkout form that posts to authorize.net to approve a transaction and then displays a receipt page back on my server. 我有一个结帐表单,该表单张贴到authorize.net上以批准交易,然后在我的服务器上显示回执页面。 However, session variables set on the checkout page are not carried over to the receipt page. 但是,在结帐页面上设置的会话变量不会被带到收据页面。 How can I save session variables when the user is redirected to an external https domain and then back? 当用户重定向到外部https域然后又重定向回时,如何保存会话变量?

If I save the variables to a database, how do I even identify which data is associated with the user if the session variable with the username is lost!? 如果我将变量保存到数据库中,那么如果丢失带有用户名的会话变量,该如何确定与用户相关的数据呢?

I had a similar problem with session not working just on one browser. 会话无法仅在一个浏览器上运行时,我遇到了类似的问题。 Turns out I apparently had too many cookies for that host, clearing them solved the problem. 原来我显然对该主机有太多cookie,清除它们可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM