Jump to content


Photo

unset($_GET['var']);


  • Please log in to reply
3 replies to this topic

#1 mayu_bt

mayu_bt
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 18 March 2006 - 12:57 PM

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

#2 shortj75

shortj75
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationPort Huron,mi

Posted 19 March 2006 - 06:06 AM

please post some code so we can see what you are working with and to see if we can helpor not
The Short One

hopfully this helps if it doesn't sorry
i won't write the code for you!!! you don't learn that way

#3 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 20 March 2006 - 06:14 AM

[!--quoteo(post=356346:date=Mar 19 2006, 06:06 AM:name=shortj75)--][div class=\'quotetop\']QUOTE(shortj75 @ Mar 19 2006, 06:06 AM) View Post[/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.

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#4 mayu_bt

mayu_bt
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 20 March 2006 - 11:38 AM

Thanks KeeB, I got it! :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users