i create a logout script which deletes the cookie which keeps the user logged in.
<?php
setcookie("username", "brian");
print ("Cookie Sent!");
?>
but when the logout script is run,
<?php
setcookie("username", "", time()-60);
print ("Your logged out!");
?>
"Youre logged out is displayed from the cache and the cookie-delete code isn't executed causing the user to remain logged in!
any help appreciated!