jdneill Posted December 19, 2008 Share Posted December 19, 2008 I want to use the following in one of my scripts: unset( $GLOBALS['_REQUEST'] ); $GLOBALS['_REQUEST'] = array_merge( $GLOBALS['_GET'], $GLOBALS['_POST'] ); I want to use $_REQUEST but do not want cookie information etc to be present in the $_REQUEST global and I wondered......... Is this considered safe and could there be and security implications doing this? Many thanks, John Quote Link to comment https://forums.phpfreaks.com/topic/137717-unset-_request-global/ Share on other sites More sharing options...
premiso Posted December 19, 2008 Share Posted December 19, 2008 I do not see any security implications on doing this...as long as $GLOBALS work, it should be fine. Quote Link to comment https://forums.phpfreaks.com/topic/137717-unset-_request-global/#findComment-719860 Share on other sites More sharing options...
jdneill Posted December 19, 2008 Author Share Posted December 19, 2008 I do not see any security implications on doing this...as long as $GLOBALS work, it should be fine. Thanks, just wanted a second opinion on this. Quote Link to comment https://forums.phpfreaks.com/topic/137717-unset-_request-global/#findComment-719897 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.