Jump to content

unset $_REQUEST global


jdneill

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/137717-unset-_request-global/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.