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 difference between client-side and server-side programming?

1177


When sessions ends?

1003


How send email using php?

1011


When use javascript vs php?

1082


What is array and function?

1100


What is the use of callback in php?

1051


Name some of the constants in php and their purpose.

1038


What is difference between php and html?

1113


How can we submit a form without using submit buttons?

1009


What do you use php for?

1053


What is the use of mysql_real_escape_string in php?

954


Explain what does $_server means?

1123


Write a program to find no of days between two dates in php?

1047


Which php framework is in demand?

952


Tell me which programming language does php resemble to?

979