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 / pawan chhabra

// Create a logout.php file then..

<?php
session_start();
header("location:login.php");
session_destroy();
??

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe PHP error and logging information?

1087


what is difference between PHP4 , PHP5

2365


List the different types of print functions available in php?

922


Which function would you use to determine the length of a string in php?

1047


Which function would you use to format date information in php?

975


Can we extend multiple classes in php?

1037


Explain Constant in Class?

1032


Why is php so popular?

915


Is php outdated 2019?

951


What is the main difference between php 4 and php 5?

976


What is faster?

1012


Do you know how to delete a file from the system?

1020


What are php magic methods?

999


Difference between array_combine and array_merge?

1164


Why php script is not running in browser?

1045