note 70727 added to function.setcookie

From: Date: Wed, 25 Oct 2006 14:40:22 +0000
Subject: note 70727 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-119102@lists.php.net to get a copy of this message
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. ---- Server IP: 217.13.201.10 Probable Submitter: 213.191.39.126 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/70727 Del: integrated -- https://master.php.net/note/delete/70727/integrated Del: useless -- https://master.php.net/note/delete/70727/useless Del: bad code -- https://master.php.net/note/delete/70727/bad+code Del: spam -- https://master.php.net/note/delete/70727/spam Del: non-english -- https://master.php.net/note/delete/70727/non-english Del: in docs -- https://master.php.net/note/delete/70727/in+docs Del: other reasons-- https://master.php.net/note/delete/70727 Reject -- https://master.php.net/note/reject/70727 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119102) next »