Solved

Expert Exchange's: Login USERNAME & PASSWORD Window

Posted on 1997-12-04
8
314 Views
Last Modified: 2006-11-17
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
8 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1842135
.htaccess .htpasswd
0
 
LVL 4

Expert Comment

by:johnt082197
ID: 1842136
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
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842137
ozo's comment is correct, no Perl script involved in logging in. Answer the question :-)
0
 
LVL 9

Expert Comment

by:magigraf
ID: 1842138
Confirming... no Script, no perl, no Java...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 84

Expert Comment

by:ozo
ID: 1842139
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
 

Expert Comment

by:dbetz
ID: 1842140
Then what code does the browser get to know to pop up that window?  Be technical.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1842141
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
 

Accepted Solution

by:
MWinters earned 10 total points
ID: 1842142
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML date format to popup calendar as soon as you click 7 41
Bootstrap Columns not Side-by-Side 3 36
Sums of coloumns in html/java 15 68
Javascript create file issue 4 49
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

864 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

22 Experts available now in Live!

Get 1:1 Help Now