|
Hi everybody...I wonder if anyone can help with what I thought was a simple task at first but I was wrong, Iv'e looked all over the net but found no solution.
What I'm trying to do is this: a visitor is directed from a site to paypal, on redirection a cookie is placed on their pc logging the last page they were on, this is the script,
{
setcookie ("Auth", "http://mydomain.com/somepage.html", time() + 3600, "/");
}
exit;
This part works ok.
When they are redirected back to the site from paypal they are directed to a page containing a script which looks for this cookie and redirects them back to the page they were on, this is as far as I got with the script,
{
$_COOKIE["Auth $cookieValue"];
header("Location: $cookieValue");
exit();
}
I know it looks wrong but I can't work it out, the script is executed but in the browser its a blank page and no redirect.
Any pointers would be appreciated folks.
Go easy, I ain't gonna win any medals for scripting.
Rayo
|