#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Beijing,China
    Posts
    17
    Rep Power
    0
    I find the value of $PHP_SUTH_USER and other php varibles can't be changed. right?
    The changed value is availble just in current php page, when it goes to next page ,the value of them are still the original.
    if I want to change them , how can i do?
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    You can't. AUTH_USER is sent by the client as a response to an authentication challenge by the server. It resides in the client (after the initial value is entered by the user) and cannot be changed by the server.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Beijing,China
    Posts
    17
    Rep Power
    0
    Thank u. rod K.
    and i found $PHP_AUTH_USER and $PHP_AUTH_PW are always available until the IE window is closed! right?
    my authorization code is :
    if($PHP_AUTH_PW=="")
    { Header("WWW-Authenticate: Basic realm="MYDOMAIN.COM"");
    Header("HTTP/1.0 401 Unauthorized");
    echo $error401;
    exit;
    }
    else { do the authorization. }
    so when I've passed the authorization and want to repass it( with another username and password),then i press the back button and go to the page which need authorization. i found cant authorize,for $PHP_AUTH_PW !="".
    but i want to implement my idea, how can i do?
    thanks.
    wang jun
  6. #4
  7. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    Again, you can't. You'd have to close the browser.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Beijing,China
    Posts
    17
    Rep Power
    0
    oh,my god!

    Thank u.

Similar Threads

  1. vba to change forms record set on combo box change
    By pumpkin head in forum Visual Basic Programming
    Replies: 1
    Last Post: February 16th, 2004, 08:56 AM
  2. I can't change color. Why?
    By eBaySeller in forum Photoshop Help
    Replies: 2
    Last Post: January 16th, 2004, 07:31 PM
  3. logon script to change registry?
    By direwolf in forum Windows Help
    Replies: 1
    Last Post: December 20th, 2003, 01:33 AM
  4. unable to change style.backgroundColor using getElementById
    By spacemoose73 in forum HTML Programming
    Replies: 5
    Last Post: December 12th, 2003, 01:56 AM
  5. using document.title to change an image?
    By jamers in forum HTML Programming
    Replies: 4
    Last Post: December 11th, 2003, 09:08 AM

IMN logo majestic logo threadwatch logo seochat tools logo