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

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

1123


Which function would you use to replace a record in a database in php?

1010


How would you determine the size of a file in php?

1034


What is xss and csrf?

923


What is the meaning of a final class and a final method?

1086


Where are php configuration settings stored?

1009


Can you convert php to html?

963


Why would we use === instead of ==?

8841


How cookies are transported from servers to browsers?

970


What are the main error types in php and how do they differ?

1306


What is the use of curl()?

1050


What is the function mysql_pconnect() useful for?

935


Which php framework is best?

967


What is a php form?

1005


What is global array in php?

1038