2021年3月23日星期二

I want to make a simple redirect to a url from my website without session refresh

I have a variable with a url,

$order_paypage_url = "example.com"  

I want to redirect from this to this url from website, I have tried this :

header('Location: '.$order_paypage_url);  exit;  

But when I run this session refreshes and the redirect does not occur.

More relevant information : I am working on a PHP based e-commerce site and this is in relevance to redirecting after clicking on Place Order. I have the target destination as url, I just want to know what is triggering this session refresh which is keeping me from reaching this URL. And how can i circumvent this problem.

https://stackoverflow.com/questions/66687299/i-want-to-make-a-simple-redirect-to-a-url-from-my-website-without-session-refres March 18, 2021 at 04:27PM

没有评论:

发表评论