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

Which is the correct way to check if a session has already been started ?

1029


What percentage of websites use php?

1039


What are the types of variables in php?

1111


How check field is empty or not in php?

1096


Steps for the payment gateway processing?

1071


What are the benefits of using php?

1069


What is difference between static and final in php?

1060


What is the difference between require and include in php?

1157


What is php beginner?

1032


Define anonymous classes in php7?

1132


Which function is used to strip whitespace?

1017


What is the purpose of php?

1008


What is var_dump function in php?

1164


How to send a cookie to the browser?

1070


What is polymorphism in php?

1052