Graham Brown (CompSYS) wrote: > Hi all > > I have a few websites hosted on nix servers which have private folders so in > the online control panel they are set to require password. > When someone attempts to go to this folder in a browser they get a standard > windows login dialog. > > Does anyone know how to retrieve the user name (and password) they used to > login to the folder either with PHP/Perl? I want to basically have "Welcome > back..." then the persons name.
I would do this using cookies. Save a user-id cookie, where user-id is a GUID. Map it to a Name that they save in their preference screen. Based on cookie id, pull up the name, and say "Welcome back, %s" % user_name. I don't think you will ever be able to retrieve the password they used. I don't know of a way to get at even the user name used. Could be there, but I think cookies are the right way to go. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

