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

How many ways you can delete a session variable ?

Answer Posted / anuj kumar gupta

session_destroy() — Destroys all data registered to a session

session_unregister() — Unregister a global variable from the
current session

session_unset() — Free all session variables

If globals is on, you'll have to unset the
$_SESSION[varname] as well as the $varname.

Like:

unset($_SESSION[varname]);
unset($varname);

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of php?

966


What is a query in php?

911


What is the use of ajax in php?

1005


How do you use an array in excel?

1100


Why do you need to filter out empty files?

926


Why php is also called as scripting language?

963


What is the difference between get & post ?

1100


What are examples of dependent variables?

938


Differentiate echo vs. Print statement.

931


Where are php configuration settings stored?

1024


Tell me how to find the length of a string?

1071


Tell me how is it possible to parse a configuration file?

942


Tell me how to find current date and time?

1045


What is binary safe function in php?

1063


What are the steps for the payment gateway processing?

1008