Hi all,
When I click logout get this error:
Fatal error: Call to undefined function: sesson_destroy() in...
Why is this??
<?php
session_start();
$old_user = $HTTP_SESSION_VARS['valid_user']; // check if logged in
unset($HTTP_SESSION_VARS['valid_user']);
sesson_destroy(); // ERROR HERE
?>
<html>
<head>
<title>Logout</title>
</head>
<body>
<?php
if (!empty($old_user))
{
echo 'Logged Out.<br />';
}
else
{
echo 'You were not logged in.';
}
?>
<a href="admin.htm">Back to Main Page</a>
</body>