Solved

User authentication

Posted on 1998-10-16
5
129 Views
Last Modified: 2013-12-25
Hi,
  I am programming a website which I need to have access authentication. This is something like experts-exchange website. I would like to know how do I program the "login" dialog box(the one shows when you click on "Login" in experts-exchange) and how to retrieve data from it. Also, I would like to know how to maintain the user's status. This means a user just has to enter password for once. After that, he can freely go to any page without submitting authentication information either explicitily or implicitily. Also, if the user restarts the browser, he will need to login again. How are all these done? Any help is appreciated!

I am using Microsoft Information Server based on Windows NT.

sunjian
0
Comment
Question by:sunjian061197
  • 3
5 Comments
 
LVL 2

Expert Comment

by:nikhilh
ID: 1829123
I would also like to know the answer

0
 
LVL 3

Expert Comment

by:zhongbing
ID: 1829124
***NOTE: the following answer originally from Mplangjun*****

EE is using the web servers Basic authorisation which is on most unix boxes a change to the .htaccess file to say that a certain directory is passwordprotected.
       On an NT box one also must be sure to use Basic authorisation otherwise only MSIE can acess a passwor protected directory (challenge response)
0
 
LVL 3

Expert Comment

by:zhongbing
ID: 1829125
*** this configuration guide originall from feenix *****

If the server is Apache, here is what you can do:

    Create the .htaccess file in the directory you want to be secure with this content:
    AuthType Basic
    AuthName My homepage
    AuthUserFile passfile
    <Limit GET>
    require valid-user
    </Limit>

    then use htpasswd-utility to create the passwordfile. Like this:
    htpasswd -c passfile user1
    htpasswd passfile user2
    .
    htpasswd passfile usern

    The -c -option in the first command tells htpasswd to create the file, so don't use it
    for the other users.
0
 

Author Comment

by:sunjian061197
ID: 1829126
Hi zhongbing,

  Thanks for your answer. However, can you give me some information for maintaining the user's status, i.e. the user has to enter password for once...

sunjian
0
 
LVL 3

Accepted Solution

by:
zhongbing earned 100 total points
ID: 1829127
use this authentication, the user only need to enter password once. the web browser will remember the user name and password, you neen't configue at server side. moreover, ie can save the password even it quit.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

13 Experts available now in Live!

Get 1:1 Help Now