Jump to content

fuse3k

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fuse3k's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, tried that too. Attempted to use 401, 403, 405, etc. None of them work. Also tried all using HTTP 1.0 and HTTP 1.1, to no avail. Is there something I should look to server-side that might prevent this function from executing? If not, I'll just spare the rest of the hair on my head and just rewrite the script.
  2. Thanks for the reply kenrbnsn, I tried that earlier. It exits the script accordingly, but it does not display HTTP 401. Any ideas?
  3. Could someone tell me why the statement is completely being ignored when the conditional is TRUE? It just continues to load the page as usual. Using OB, nothing sent to browser prior. If I change header() to redirect to another page it works, but I can't get the HTTP 401 error to display.  Thanks for the help. [code=PHP] if (!isset($_COOKIE['username'])) { header ('HTTP/1.0 401 Unauthorized'); } [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.