note 70727 deleted from function.setcookie by betz

From: Date: Wed, 25 Oct 2006 15:05:53 +0000
Subject: note 70727 deleted from function.setcookie by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119105@lists.php.net to get a copy of this message
Note Submitter: Ronald L. Reason: useless ---- I had a lot of trouble with Cookies. I set a cookie with a partner ID and switched then to a SSL secured HTTPS page. I was asking in the PHP postprocess for the cookie, but there was'nt any data inside the $_COOKIE variable. I switched to Sessions, but because the Session ID is transfered via Cookies, this also does not work for me. The last param of the setCookie function also does not do the trick. Well my solution is simple after getting SSL secured data from your client use a redirect to a non-HTTPS page where you can again check for the cookie data and than redirect again to some page like "Thank you for purchasing ...". Problem will still be that someone can cheat, but this is another problem.

« previous php.notes (#119105) next »