Solved

using cookie to authenticate ... ???

Posted on 1997-08-16
3
214 Views
Last Modified: 2013-12-25
Hi, I was assigned a task to design user authentication on our web site.  The brief explaination of this authentication is as following.

1. everytime a user want to access our web site should provide their legal user name and password.

2. the administrator can manage the user-name-password database, such as adding a user, delete a user, change the user priority ...

I have read some stuff.  And it seems like cookie can do user authentication.  but I don't know how to do it exactly.  I hope we can use C to implement so that we can seamlessly integrate with our other program like cgi bins.  Do you have any idea about that?  Or do you know where on the web I can find some more info. about cookie authentication?  Thank you for your time.

Gang
0
Comment
Question by:feng042497
  • 2
3 Comments
 
LVL 5

Expert Comment

by:icd
ID: 1854734
Cookies are not reliable in that many people either don't have browsers that support them, or they do and they have turned cookies off. There is a bit of a backlash against cookies due to some sites using them to track users and obtain information about them.

If your server is UNIX then consider the .htaccess method which is not so dependent upon the type of browser.

0
 

Author Comment

by:feng042497
ID: 1854735
Hi, thank you for your help.  I know .htaccess is another solution to this problem.  But it is very hard to do user management, isn't it?
0
 
LVL 5

Accepted Solution

by:
icd earned 50 total points
ID: 1854736
There are cgi scripts that allow you to do user management from the web. So long as these scripts are themselves in a secured directory then it should be secure enough for your purposes.

A good resource to look at for several scripts is:-

http://www.cgi-resources.com/Programs_and_Scripts/Perl/Password_Protection/

There are several here that use .htaccess and you may even find one that uses cookies.
0

Featured Post

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.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
"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,…
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

777 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