Hello, I have a folder that is password protected. Whenever users login to this folder bassed on their id I want to redirect them to different pages. I know how to get the id from htaccess login window using shtml. Can anybody tell me how to get the id using php?
Thanks
Galib
I am not 100% sure about this, but I seem to remember that this value is stored as $PHP_AUTH_USER .
Try adding the following to a page that is in your protected directory to see if it works:
<?php echo $PHP_AUTH_USER; ?>
That is correct... I use it in a logging function