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.