使用http重定向的WorldPay付款响应

时间:2013-02-26 10:42:30

标签: php worldpay

回复网址为worldpay-response.php。当我print_r($_POST);时,我得到了从WorldPay返回的数组。但是,当我尝试将发布的变量保存到会话中并使用

重定向到确认页面时
meta http-equiv="refresh" content="0;url=http://localhost/confirmation.php"

$_SESSION变量没有它们。你知道我怎么解决这个问题吗?

提前致谢。

2 个答案:

答案 0 :(得分:0)

我唯一能想到的是:

确保在代码的第一行使用session_start()。

我希望这会有所帮助。

答案 1 :(得分:0)

可能与您正在进行的重定向类型有关。为什么不用PHP来做呢?

header("Location: " . http://localhost/confirmation.php);