[英]Codeigniter session getting destroyed after redirect
May be a duplicate, but the answers on such questions does not work.可能是重复的,但这些问题的答案不起作用。
Session (logged in user information and other) getting destroyed after being redirected from an external website (probably Payment Gateway page) to the website with POST data. Session(登录用户信息和其他)在从外部网站(可能是支付网关页面)重定向到带有 POST 数据的网站后被破坏。
No.不。
No.不。
Session Data before getting redirected: www.example.com Session 重定向前的数据: www.example.com
Session Data after getting redirected from subdomain with POST data another.example.com. Session使用 POST 数据从子域重定向后的数据another.example.com。
Session Data after getting redirected from a different domain without any POST data example-two.com Session 在没有任何 POST 数据的情况下从不同域重定向后的数据示例二.com
Session Data after getting redirected from a different domain with POST data example-two.com Session使用 POST 数据示例二从不同域重定向后的数据。com
go to system/libraries/Session/session.php and find below code: go 到 system/libraries/Session/session.php 并找到以下代码:
ini_set('session.name', $params['cookie_name']);
and replace it with this code:并用以下代码替换它:
ini_set('session.id', $params['cookie_name']);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.