PHP ERROR Fatal error: Call to undefined function session_destory() in...

dalton metzler

New member
...C:\xampp\htdocs\kramansro\logout.php on? <html>
<title>Logging out...</title>
<body bgcolor="Black">
</body>

<?php

session_start();

session_destory();

echo "You've been logged out, you will be redirected to home page in 3 seconds";

?>

</html>

whats wrong with it?
 
The Doctor is right. Lol that was just perfect how that worked out huh? I just wanted to let you know you can also set the session to an empty value. There are cases you don't want to do that but there is also cases you want to. session_destroy kills EVERY session for that website, what if you wanted to keep some? Just food for thought.
 
Back
Top