tibberous Posted December 27, 2010 Share Posted December 27, 2010 I like to use $_REQUEST to get something from either $_POST or $_GET. Annoying though, it also includes values from cookie, like the PHP session id, FCK editor cookies and the google tracking code. Is there anyway to remove cookie values from request, besides looping through cookie and unsetting the values I don't want? Link to comment https://forums.phpfreaks.com/topic/222714-any-way-to-remove-_cookie-data-from-_request/ Share on other sites More sharing options...
BlueSkyIS Posted December 27, 2010 Share Posted December 27, 2010 use only specific REQUEST values, don't take "anything and everything the user sends". Link to comment https://forums.phpfreaks.com/topic/222714-any-way-to-remove-_cookie-data-from-_request/#findComment-1151787 Share on other sites More sharing options...
kenrbnsn Posted December 27, 2010 Share Posted December 27, 2010 Don't use the same variable name in both $_GET & $_POST and always use the one you expect from either $_GET or $_POST. Don't use $_REQUEST. Ken Link to comment https://forums.phpfreaks.com/topic/222714-any-way-to-remove-_cookie-data-from-_request/#findComment-1151793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.