I'm using the Apache variable $REMOTE_USER which automatically contains the username of the person signed into the password protected directory.

Problem: I cannot get the $REMOTE_USER variable to clear once the person has signed out, therefore the if ($REMOTE_USER ="whomever") is always true once that person has logged on.

Question A:
How do I get this to clear after x seconds or even immediately after the user has closed his browser?

Question B: (if applicable)
and...if the user has to do a physical log out with a button, how do I get that logout to clear the $REMOTE_USER variable.

    I would suggest using sessions, then storing the variable in it, and, if it still gives you trouble, you can use the function unset()

    Maybe it helps you

    fLIPIS

      Write a Reply...