I am trying to implement the simplest shared 'files' folder for a website but wish to have a 'reasonable' level of access control - i.e no casual multimegabyte uploads from passing hoi-polloi.
Users are given a password etc. They then log-in, once credentials are successfully checked, they are given one of two possible access rights - read-only (RO) or read-write (RW) access to the files. 'write' in this context means they can upload files.
User management/registration/password reminders can all be handled manually - no code required at this point.
What is the best way to do this:
- Write a secret in the session variables?
- Store some kind of time-limited session key as a local cookie?
- Check the local database for some kind of session key?
- (heading for the too complex) use pukka .NET authentication mechanisms
Any constructive suggestions welcomed. I'd be especially delighted if someone could point me to a good example of the breed that was C#/ASP.NET based.
Many thanks
Jerry.