Hi,
I dont understand why I cant destroy the session cookie after I call session_destroy(). I tryed the below code and I still get a session id from the cookie.
Any help would be most appreciated!
<?php
$name = session_name();
session_start('$name');
$_SESSION = array();
session_destroy();
setcookie ("PHPSESSID", "", (time()-90000));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<?php
$test = $_COOKIE['PHPSESSID'];
$id = session_id();
echo $id."<br />";
echo $test;
?>
</body>
</html>