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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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