Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

User authentication

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
sunjian061197
Asked:
sunjian061197
  • 3
1 Solution
 
nikhilhCommented:
I would also like to know the answer

0
 
zhongbingCommented:
***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
 
zhongbingCommented:
*** 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
 
sunjian061197Author Commented:
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
 
zhongbingCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now