views:

64

answers:

3

I have a website which requires pretty simple logon restriction to a set folder (2 users) I'd like to use the Membership provider but have a sql DB (While easy and painless) seems a bit of overkill.

Is there a simpler way of doing this? without re-writting the membership provider.

A: 

You can use your web.config to store your members and roles definitions/credentials. A sample here: http://www.eggheadcafe.com/articles/20060529.asp

o.k.w
A: 

You could hard code the password hashes for the 2 users into the asp files and match the hash at logon :)

Crimson
hard-coding is not a good practice. should only be used in tutorials.
Shivan Raptor
He doesn't want a DB; and there are only 2 users ...
Crimson
A: 

In the end, I've decided the best way is to use the SQL database and standard tables.

Pino