Is it possible to get the username of someone who has succesfully authenticated through the htpasswd process and put that in a session variable?
User: mave
Pass: mave123
Successful login: write 'mave' to session?
Is it possible to get the username of someone who has succesfully authenticated through the htpasswd process and put that in a session variable?
User: mave
Pass: mave123
Successful login: write 'mave' to session?
.htaccess cannot create or populate PHP session but you can get:
$_SERVER['PHP_AUTH_USER']
value in your PHP code and store in session.