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 should a model be structured in mvc?

872


Does cors prevent csrf?

892


What does the expression exception::__tostring means?

959


What is string and its function?

925


How to return a value back to the function caller?

963


What is the use of return in php?

866


How to call javascript function in php without any event?

908


How to do single and multi line comment in php?

952


How to get number of days between two given dates using PHP?

861


What does odbc do in context with php?

975


How many escape sequences are recognized in single-quoted strings?

872


What is the use of dual table in mysql?

917


Which is the correct way to check if a session has already been started ?

936


Why sessions are used in php?

904


How to count a number of words in a string in php?

919