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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass authentication credentials via PHP?

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
US
I wish to authenticate client logons via sessions and display the contents of a specific directory to the user based on logon... So far, no problem... Script lists contents of appropriate directory and creates a link to access each file (.pdf reports)...

Here's my problem-

If I just use subdirectories within my public_html directory, a saavy user could access files via the path in the link anchor without authentication and perhaps guess their way into other users directories...

If I place the files somewhere other than public_html I can list the files; but, Apache won't/can't serve them upon demand.

Can I use PHP to pass authentication credentials to Apache so that once authenticated via sessions they could access a .htaccess protected directory?

If so, how?

TIA,

-ADM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top