<?php
session_start();
session_destroy();
if(isset($_COOKIE['cookemail_id']) && isset($_COOKIE['cookpassword']))
{
setcookie("cookemail_id", "", time()-60*60*24*100, "/");
setcookie("cookpassword", "", time()-60*60*24*100, "/");
setcookie("cooktype", "", time()-60*60*24*100, "/");
}
?>
Above is my code for log out . But session variable is not getting deleted.