Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Perl auto logon to an htaccess protected page

Status
Not open for further replies.

JamSnax

Programmer
Dec 5, 2002
3
0
0
US
I have a perl site which authenticates the user. As part of the application I would like to have Perl find and open a document (PDF) that is in a .htaccess protected folder for that customer.

The problem is that since I have already authenticated the user, he shouldn't have to be presented with the user/password challenge again. In my case, my perl application already has access to the username and password because they are stored in a db.

The challenge, then, is to somehow have perl go through the challenge behind the scenes instead of the user having to see the clunky dialog.

Any ideas?
 
You could bury this in frames, but how security conscious are you?

Perl accepts the authentication, and then redirects to a page with the username & password embedded in the link

e.g
HTH
Paul

PS It has risks ...

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top