Forum Moderators: coopster & phranque

Message Too Old, No Replies

Passing user and pass in url with PERL

any better methods?

         

lindajames

11:12 am on May 22, 2003 (gmt 0)

10+ Year Member



Hi,

I have a cgi script that links a to a protected directory. The CGI script has a link to a file within a .htaccess secured folder. To avoid users from having to enter the username and password, i currently link to that page in the following method:

[username:password@mydomain.com...]

The problem is not that the user can see the password, as it will be their password anyway, but the problem is more the fact that it leaves the username and password in the internet history. Is there anyway else to link to that page like the above way but without having to have the username and password mentioned in the url (maybe parsing it via a parameter or something)

I would appreciate any suggestions.

Cheers
Linda

lindajames

5:24 pm on May 23, 2003 (gmt 0)

10+ Year Member



Hello,

Doesnt anyone know how this can be done then? i mean i know how to see what username they are logged in as: $ENV{REMOTE_USER}; but the thing i want is to log them in as a particular user. with needing to put the username and password in the url.

Any help would be much appreciated.

Cheers
Linda

BCMG_Scott

6:27 pm on May 23, 2003 (gmt 0)

10+ Year Member



You could password protect the directory via .htaccess settings. Then when they request the page they will receive a pop up auth box to enter user/pass.

Scott Geiger

lindajames

6:52 pm on May 23, 2003 (gmt 0)

10+ Year Member



Im not trying to protect the directory, its already protected with .htaccess but i want to provide a link to the .htaccess protected folder but i want to embed the username and password in the page rather than a popup