[PHP] sessions and REMOTE_USER

2001-03-29 Thread Rahul Bhide
Gurus, I am a relative newbie to sessions in php. Question: How can I get the loginname of the user . Can session and session variables get this??. Another way I have tried(but unsuccessfully !!) is to have a .htaccess file in the directory . Once the user logs in I use the following code to

Re: [PHP] sessions and REMOTE_USER

2001-03-29 Thread Renze Munnik
Well, try this: $REMOTE_USER or $PHP_AUTH_USER or $HTTP_SERVER_VARS["REMOTE_USER"] or $HTTP_SERVER_VARS["PHP_AUTH_USER"] or $HTTP_SERVER_VARS{"PHP_AUTH_USER"} or $HTTP_SERVER_VARS{"REMOTE_USER"} ...make your choice... RenzE Rahul Bhide wrote: