ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Password Protection

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#)
View previous topic :: View next topic  
Author Message
blueangell



Joined: 31 Jan 2006
Posts: 19

PostPosted: Wed Feb 22, 2006 11:04 pm    Post subject: Password Protection Reply with quote

I would like to password protect some of my pages for special users who will have the password.

What is the best way to do this?
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Thu Feb 23, 2006 9:53 am    Post subject: Reply with quote

You can keep User table with usernames and passwords in a database and then authenticate against it whenever somebody tries to access certain page.

Also you can use the built-in ASP.NET authentication capabilities.
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
blueangell



Joined: 31 Jan 2006
Posts: 19

PostPosted: Thu Feb 23, 2006 3:30 pm    Post subject: Reply with quote

I guess my question is now to you prevent someone without the password from viewing the page? Is that part of the built-in ASP security?
Back to top
View user's profile Send private message
marbles



Joined: 01 Mar 2006
Posts: 16

PostPosted: Wed Mar 29, 2006 6:52 pm    Post subject: Reply with quote

You'll have a clause in your function that says if the password is wrong then they are not allowed access.

You'll also need to set cookie and/or session variables for this to work properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial