I have a web page incorporating a form. This web page resides in a directory that is protected by apache using a </Directory> stanza so the client user must have supplied a username and password to have accessed the web page and form.
I want to be able to extract the username used to access the web page within the script called by the form.
The apache doco indicates that this should be passed as an environment variable but I am unable to make this work, presumably due to some server mis-configuration.
How do I accomplish this requirement?