Solved

Password-box like E-X-login

Posted on 1997-12-14
3
201 Views
Last Modified: 2013-12-25
I want to make a password-box just like  the "experts-exhange" uses to log in.

How can I make it?

Greetings,

Max
0
Comment
Question by:xynyx
3 Comments
 
LVL 6

Expert Comment

by:alamo
ID: 1856001
Depends what server and OS you are using, and how you want to use authorization. There are things you can do, things you can't, and different ways to do it. So you need to tell us more.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1856002
To do it exactly like Experts-Exchange, configure your server to return the headers:

HTTP/1.0 401 Unauthorized
Date: Sun, 14 Dec 1997 21:51:10 GMT
Server: Apache/1.1.2
Content-type: text/html
WWW-Authenticate: Basic realm="Experts Exchange Customer"


0
 
LVL 8

Accepted Solution

by:
jhurst earned 50 total points
ID: 1856003
To really have passwords like E-X you would need to have a server that supports this.  I suspect that you want to do this in JS.  You can get very close by creating a window, with window.open... and then asking for the password in this window.  This smaller window would post the results back into the opener when the submit is pressed.  The submit would also close this window.

The bad news is that, unless you think very carefully anyone who understands JS will be able to look at your code and work out the passwords.  There are ways around this, if you actually have the passwords that are acceptable as pages that are loaded when the password is entered.

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

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

757 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

20 Experts available now in Live!

Get 1:1 Help Now