Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the ways we can destroy a session variable ?

Answer Posted / jeevi

it will destroy all the variables.
session.invalidate();

if you want to destroy individual variables, use this command.
session.removeAttribute("sessionvariablename");

Is This Answer Correct ?    3 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of runtime errors in php?

1080


What is a trait in php?

1011


What is difference between session and cookie in PHP?

975


What are magic methods?

954


Explain what is the difference between session and cookie?

1046


Why do we use interface in php?

968


How do I sort numbers in php?

1053


What are psrs?

1079


If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

959


What PHP stands for?

1028


What is the difference between single quoted string and double quoted string?

1096


How to remove html tags from data in php?

1024


What is php good for?

920


What does $_server means?

1003


Explain me what is the importance of "method" attribute in a html form?

927