Results 1 to 2 of 2

Thread: How to reset $_SERVER variable ?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2015
    Posts
    8

    How to reset $_SERVER variable ?

    Hi,,
    I've used protocol authentication on my web site, however I've got a retardant however do I reset that $_SERVER['PHP_AUTH_pw'];
    Variable? thus it once more can enkindle authentication ?

  2. #2
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: How to reset $_SERVER variable ?

    I have never tried to make this kind of authentication myself... but isn't it the usual unset()?

    like this?

    Code:
    if (isset($_SERVER['PHP_AUTH_PW'])) {
    unset($_SERVER['PHP_AUTH_PW']);
    }

    alternatively, just set the value to null?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width