Solved

Expert Exchange's: Login USERNAME & PASSWORD Window

Posted on 1997-12-04
2
416 Views
Last Modified: 2013-12-25
Before any of us can get into Expert Exchange we all have to LOGIN.  Automatically a window pops up asking for USERNAME and PASSWORD.  We enter those in and the window data is submitted back to the CGI.

How does Expert Echange do this without using Javascript?  I am using Netscape and it pops up as if the CGI of EE has sent back data trigerring the box to pop up.  

What is the code to do such a thing?  I do not want to use Javascript because I want to pop up such a window for every browser.

Any help would be greatly appreciated!
0
Comment
Question by:mirror
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1831503
Experts Exchange sends back the following HTTP headers:

HTTP/1.0 401 Unauthorized
Date: Fri, 05 Dec 1997 23:11:10 GMT
Server: Apache/1.1.2
Content-type: text/html
WWW-Authenticate: Basic realm="Experts Exchange Customer"


Your browser then gets your USERNAME and PASSWORD, and resends the request with the header:

Authorization: Basic <base64 encoded USERNAME:PASSWORD>
0
 
LVL 1

Accepted Solution

by:
maholt earned 0 total points
ID: 1831504
It is not done by any programming in the web page.  It is done with a .htaccess/.htpasswd file.  Any web server documentation should cover this.  It is pretty simple.
http://www.smartek.net/pass/ has a short, yet complete, description of how to set it up.

The authentication is done completely by webserver-browser negotiation.  No CGI programming is involved.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now