回复网址为worldpay-response.php
。当我print_r($_POST);
时,我得到了从WorldPay返回的数组。但是,当我尝试将发布的变量保存到会话中并使用
meta http-equiv="refresh" content="0;url=http://localhost/confirmation.php"
$_SESSION
变量没有它们。你知道我怎么解决这个问题吗?
提前致谢。
答案 0 :(得分:0)
我唯一能想到的是:
确保在代码的第一行使用session_start()。
我希望这会有所帮助。
答案 1 :(得分:0)
可能与您正在进行的重定向类型有关。为什么不用PHP来做呢?
header("Location: " . http://localhost/confirmation.php);