troubleshooting Question

How to track a specific user after basic authentication

Avatar of StevenMiles
StevenMiles asked on
Web DevelopmentApache Web ServerScripting Languages
5 Comments3 Solutions254 ViewsLast Modified:
I have successfully implemented basic authentication with apache on a site: the user needs to enter username and password on that horrible browser pop-up box, and then he has access to the restriced areas so he can read restricted material.  Works fine.  But now I'm working on a site where, when the user gains access, the CGI programs (perl) need to know *which* user is there, so, for example, he can see *his* account information or *his* customized pages.  I can't figure out how the perl programs identify the specific user upon his entry into the restricted area, and then keep track of which user it is as he navigates pages in the restricted section.

I can figure out some workarounds, like receiving and then passing back user name in a hidden form field on every page that the user sees in the restricted area, but I'm looking for a more straightforward solution that I hope exists.

Question that is possibly answered as part of a solution: is there any way to allow the user to gain access with UserName and Password fields on the page that I create, rather than that little browser popup box?
Thanks.
--Steve D.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros