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 can we destroy the session, how can we unset the
variable of a session?

Answer Posted / sreenia

the better way of destroying a session is to first unset all
the values of $_SESSION variables individually, and then use
the session_destroy() function

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1321


Tell me what types of loops exist in php?

1130


What will the ?getdate() function returns in PHP?

1099


How many functions are there in php?

1002


Tell me what is the difference between characters 34 and x34?

979


What is the major php security hole? How to avoid?

993


What is php7?

1085


What is the static variable in function useful for?

965


How is a constant defined in a PHP script?

1036


What are the differences between mysqli_connect and mysqli_pconnect?

1004


What are escaping characters?

969


Which php global variable is used for uploading a file?

1021


Is laravel easy to learn?

967


If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?

968


Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

1062