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

Which is not a php magic constant?

1029


Do you know how to get the ip address of the client?

1075


Does php need to be installed?

900


Why is php used for web development?

931


Is python better than php?

965


How to declare an array in php?

1035


How to create database connection and query in php?

986


How does the identity operator ===compare two values in PHP?

1045


Explain me what is the goto statement useful for?

783


What is the w3c?

8892


What is a controller php?

940


What is the Default syntax used in PHP?

1066


Tell me how the result set of mysql be handled in php?

942


How be the result set of mysql handled in php?

1116


Tell me what is the difference between unset() and unlink()?

1019