.htaccess
is a convenient way to filter accesses to a page, thanks to the Basic authentication for instance.
In this case the
Require user chandler monica ross rachel
will authorize the access to the page to the 4 persons mentioned above (provided that they enter their appropriate password).
Is it possible in PHP to retrieve the login name that was entered by the user, after she logged in?
For instance chandler logs in and accesses index.php
, is it possible to find out that chandler is using the page from the index.php code?