Solved

Expert Exchange's: Login USERNAME & PASSWORD Window

Posted on 1997-12-04
8
315 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 9

Expert Comment

by:magigraf
ID: 1842138
Confirming... no Script, no perl, no Java...
0
 
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

809 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