Hello ppl. I have a problem destroying my sessions!
destroy_email.php
session_start();
if($action == "ok"){
session_unregister("r_email");
session_unregister("firstName");
session_destroy();
}
if(!session_is_registered("r_email"))
(!session_is_registered("firstName"))
header("location: [url]http://www.evostation.com/display.php[/url]");
thats all whats in the destroy_email.php page. It's just a script include.^
display.php script include:
} elseif($_GET["mid"] == "$mid" && ($_GET["opt"] == "email" && ($_GET["email"] == "sent"))){
include "include/scripts/sessions/destroy_email.php";
display.php text:
} elseif($_GET["mid"] == "$mid" && ($_GET["opt"] == "email" && ($_GET["email"] == "sent"))){
echo "<p><font size=\"2\" face=\"Tahoma\">Your E-Mail has been sent! You will recieve
an E-Mail from the Auto Responder very soon!</font></p> <a href=\"display.php?action=ok\">Ok</a>"
Now when I press "Ok" the session won't destroy! why?