1

I try to login via header function (HTTP authentication). I take username and password and #check it in MySQL database. It woks! but in log out I have a problem!

How can I delete active login that make via function below? (I must say I can logout if I #delete active sessions in my browser!). should I unset php_auth_user server variable?

<?php
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
?>
Shankar Narayana Damodaran
  • 66,874
  • 43
  • 94
  • 124
SirSaleh
  • 1,382
  • 3
  • 24
  • 37

0 Answers0