shahriyar - 2014-05-20 08:13:14
hi dear,
this is my code
<?php
ob_start();
require_once '../inc/class_session.inc.php';
$session = new Session();
if(!isset($_SESSION['admin']) OR !isset($_SESSION['userid'])){
unset($_SESSION['admin']);
unset($_SESSION['userid']);
session_destroy();
session_unset();
header('location: index.php');
exit();
}
All sessions found in the database is not deleted
What command to clear the session from the database should be used?
i tested with firefox and chrome