I am new to ASP.NET (obviously). I need to create a really simple database driven user login system using ASP.NET. In PHP this is simple; just call session_start() at the top of the page and the session will be created or resumed. Then it is just a matter of connecting to the database and authenticating the user. I was able to learn this in less than 2 hours using php.
With ASP.NET and visual studio I am not having as good a luck. I have researched a bit, although not as much as I would like because I do not have a lot of time to spend on this, and read about two ways to implement logins. First you can use the password forms controls and put the user/pass info in the web.config. Second you could use the Membership API. I did not like either of these.
Is there not a way to do very simular to php where you just start the stinkin session, connect to the database, authenicate and your done? I am sure there is, I just haven’t had the time required to research this as much as needed due to classes and work. I was hoping someone here could save me a little time and just tell me what to lookup! Thank you in advance!
btw, I want to use visual studio 2010 (if that matters).
If you create a web application, and use the default then it generates a template that has the full login system already implemented. You don’t have to do anything, just modify the pages for your own purposes.
You should use the Membership API. It’s simple, and easy. You should use the FormsAutentication system, it’s secure and robust, and well tested. It takes seconds to implement, not two hours.