Jump to content

Archived

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

mayu_bt

unset($_GET['var']);

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..

Share this post


Link to post
Share on other sites
please post some code so we can see what you are working with and to see if we can helpor not

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.