Jump to content

unset($_GET['var']);


mayu_bt

Recommended Posts

Hi Peoples,

Am unable to unset OR reset OR destroy $_GET variables, that is the ones which are passed to a php file from java script functions. I cannot afford to destroy the whole session variables as I need to have $_SESSION variables for user authentication and other stuffs.

I have used unset() function but it failes to unset them!

Please help me..
Link to comment
https://forums.phpfreaks.com/topic/5225-unset_getvar/
Share on other sites

[!--quoteo(post=356346:date=Mar 19 2006, 06:06 AM:name=shortj75)--][div class=\'quotetop\']QUOTE(shortj75 @ Mar 19 2006, 06:06 AM) [snapback]356346[/snapback][/div][div class=\'quotemain\'][!--quotec--]
please post some code so we can see what you are working with and to see if we can helpor not
[/quote]

The code wouldn't matter. By design you would never want to unset a $_REQUEST, $_GET, $_POST, etc like variables. Think of them as constants.
Link to comment
https://forums.phpfreaks.com/topic/5225-unset_getvar/#findComment-18977
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.