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

Which function(s) in PHP computes the difference of arrays?

1039


What are php applications?

991


What is the use of strpos in php?

1103


How can I prevent sql-injection in php?

1100


How to create a session? How to set a value in session? How to remove data from a session?

1023


How to remove an empty directory?

1085


Which is best framework for php?

1072


Name some of the functions in php.

1095


What is php trait?

1033


What's the difference between using mysql_ functions and pdo?

1260


What is php? Why it is used?

1202


Which is correct about mysqli and pdo?

1149


How do you identify independent and dependent variables in research?

963


how to track user logged out or not? when a user is idle?

959


Is it possible to submit a form with a dedicated button?

997