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

How do I escape in php?

1000


How do I find out the number of parameters passed into function9?

974


Does php have a future?

932


What is php explain how php works?

977


What does empty mean in php?

989


Which php framework is best for security?

1006


What are the difference between echo and print?

990


Tell us how can we display the output directly to the browser?

1033


Explain setcookie() function in php?

1020


Explain the different types of errors in php.

1070


What is difference between single quotes and double quotes in php?

902


What is a php object?

943


Where php basically used?

1001


What's the difference between __sleep and __wakeup?

1058


How do you check is php not empty?

1004