Hello, I would like to direct a client to a directory dependent on the login. For example Dan logs in as a member of group admin requesting file index.html and is automatically presented with /var/www/html/admin/index.html. Subsequently he is only served files from /var/www/html/admin/ . If Joe logs in as a member of group user requesting file index.html he is automatically presented with /var/www/html/user/index.html. Subsequently he is only served files from /var/www/html/user/ . Does anyone know how that may be done? 2nd. question, how can I get the username & group of the requestor of a page? Thanks in advance - Ken
You could do this with PHP (or any other scripting language, e.g. Ruby or Perl). You can set a cookie, or, if the user has disabled cookies in his browser, use session ids. http://www.onlamp.com/pub/a/php/excerpt/webdbapps_8/index.html http://www.php.net/setcookie http://www.php.net/session