Expert Exchange's: Login USERNAME & PASSWORD Window

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!
mirrorAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MWintersConnect With a Mentor Commented:
I have not tried this MYSELF, however, i know someone who did it on their site. A cookie is placed on the user's hard drive, then the information in stored there (name and password). The info the user types in at login is then checked against that in cookie. If they match, you are let in. If not, go back to a specified page. This makes it more difficult to have duplicate user names on one computer withut having multiple browsers. The way to plant and read the cookie CAN be done in javascript, although it does not have to be.
0
 
ozoCommented:
.htaccess .htpasswd
0
 
johnt082197Commented:
You were right about CGI. It's probaby a script written in Perl. You need the perl executable running on the server to do so.

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Christian_WenzCommented:
ozo's comment is correct, no Perl script involved in logging in. Answer the question :-)
0
 
magigrafCommented:
Confirming... no Script, no perl, no Java...
0
 
ozoCommented:
If the comment was enough to point mirror to the desired answer,
then I'll mark it as an answer.  Otherwise, perhaps we may need to
know what server mirror is using, and depending on what that is,
another expert may want to answer.
(Perhaps linda or wormzer if the question is specifically about the EE site)
0
 
dbetzCommented:
Then what code does the browser get to know to pop up that window?  Be technical.
0
 
ozoCommented:
HTTP/1.0 401 Unauthorized
Date: Sat, 06 Dec 1997 01:17:03 GMT
Server: Apache/1.1.2
Content-type: text/html
WWW-Authenticate: Basic realm="Experts Exchange Customer"
0
All Courses

From novice to tech pro — start learning today.