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

Can a super () and this () keywords be in same constructor?

861


Does strlen include null?

1019


Tell me what is the difference between ereg_replace() and eregi_replace()?

1053


Explain the different types of errors in php.

1013


explain php variable length argument function.

996


What are the Formatting and Printing Strings available in PHP?

1030


What is the $_ server php_self variable?

949


Which function can be used to delete a file?

1132


How to find datatype of variable in php?

948


What is basic php?

961


Which operator is used to concatenate two strings in PHP?

997


What is composer install?

1005


How to insert an new array element in array?

981


What is the functionality of the functions strstr() and stristr()?

927


What is difference between web service and api?

974