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

How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

982


What are getters and setters and why are they important?

1093


Explain type casting and type juggling.

1080


What does type casting mean in php? Explain with an example?

1027


What is php and what does it do?

1116


What is the empty function?

1040


How long does a session last in php?

1031


Who is the father or inventor of php?

1131


Does facebook use php framework?

1071


Does apache use php?

1038


What are the benefits of composer?

1062


Does csrf token change?

971


Is php case sensitive?

993


What is meant by MIME?

1107


What is $_ post in php?

1127