I have created a members database that can be signed up to etc!
I have attempted to create some lougout script using online tutorials and text books as guides but none appear to work!
is the code i am using at the moment! Can anyone tell me what i am doing wrong? or whether i am barking up completely the wrong tree?
--KEY--
'pwd' = Password of the user
'loginName' = Username
I have attempted to create some lougout script using online tutorials and text books as guides but none appear to work!
Code:
<?
session_start();
unset($_session['pwd']);
unset($_session['loginName']);
session_destroy();
header("Location: logout.html")
?>
is the code i am using at the moment! Can anyone tell me what i am doing wrong? or whether i am barking up completely the wrong tree?
--KEY--
'pwd' = Password of the user
'loginName' = Username