Web Hosting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb HostingWeb Hosting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2001, 03:07 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Password protecting a website

Hi,

I work at a website design company. We are currently developing a site that requires a password-protected Member section. A site done at this company before I started working here has a page that is password protected in theis manner: The page is a ColdFusion template with an HTML form that requires you to enter a username and password. The username and password are checked by querying a database that contains the usernames and passwords. If the the username and password entered in the form match both fields in a given record in the database, the template writes a cookie on the client machine and allows them to continue to browse the site. Is this a secure way of implementing password protection? All of the information I have seen regarding this talks about HTTP Authentication, which is obviously not employed in this scheme. Any information appreciated, thanks.

Reply With Quote
  #2  
Old June 4th, 2001, 09:38 PM
yoey2000 yoey2000 is offline
MMMM...Brains....
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 461 yoey2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 11 h 24 m 57 sec
Reputation Power: 8
htaccess?

You could use htaccess. For how-to and info, goto
http://www.perlaccess.com/tutorials/8/8.3.html

Reply With Quote
  #3  
Old June 5th, 2001, 07:22 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Password protecting a website

Yoey-

Thanks for your post, but I think you missed the point of my problem -- I guess I should have explained the situation in greater detail...

At the company I work at, we have been developing sites with ColdFusion and Access and everything has been hosted on an NT server accordingly. Now we are doing a site that requires a password protected members area, but my boss wants to keep using ColdFusion and Access. I did some research on the password protection issue and everything was telling me that I needed to be on a Unix system and use HTTP Basic Authentication, as you suggested. When I told my boss about this he told me that he already had a site with password protection, hosted on his NT server.

So I took a look at what he was talking about and I'll describe it now in a little more detail. There is a page on the site, a ColdFusion template, with a textbox for username and one for password. You type in your username and password and click submit, then the template queries and Access database containing usernames and passwords. The SQL statement that forms the query has a WHERE clause that says WHERE username = form.username AND password = form.password, so if the user types in a valid username and password a record is returned by the query. There is then code in the template that tests to see if a record was returned; if there is, it sets a cookie on the user's machine and allows them to continue browsing; if a record is not returned, indicating that the user did not enter a username and password that are in the database, they are redirected. My question was: is that scheme secure?

Reply With Quote
  #4  
Old June 10th, 2001, 12:05 PM
feha feha is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: SE
Posts: 28 feha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Password protecting a website

Quote:
Originally posted by JMM
Yoey-

. My question was: is that scheme secure?


If You use a diagram to encrypt the password in the coockies then it should be secure... at least 99%....

Reply With Quote
  #5  
Old June 11th, 2001, 02:23 PM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Password protecting a website

feha,

thanks for replying. This may be a stupid question, but what do you mean by "a diagram"?

Reply With Quote
  #6  
Old June 11th, 2001, 02:27 PM
feha feha is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: SE
Posts: 28 feha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry I meant ALGORITHM...

Reply With Quote
  #7  
Old June 13th, 2001, 08:34 AM
JMM JMM is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2001
Location: USA
Posts: 830 JMM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 56 sec
Reputation Power: 8
Password protection

Ok, got you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb HostingWeb Hosting > Password protecting a website


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway