Page 1 of 1
Need help with user logins
Posted: Tue Jun 14, 2005 12:51 pm
by jolinar
Can anyone help me out with this?
I'm building a gallery program, and I am trying to build in a user authentication system. I am thinking about using sessions and having a list of users, and the user classification mapping them to a mysql account (normal users use a guest account, admin uses one with more priviledges)
What I need really, is a simple explination of the concepts involved and some code (don't need a complex system, I'm only a numpty)
Posted: Tue Jun 14, 2005 3:26 pm
by Buddha443556
I doubt you'll find a simple explanation of the concepts involved. A login page may seem simple but involves a number of different elements. Cookies, Sessions, Validation, Database, Security just to name a few. Entire books have been written explaining the concepts involved. As for code... Nice thing about open source is ... well it's open source. Download something like
Gallery (since your interested in coding such a program) and take a look how that programmer did it. Maybe that will give you some ideas. If not there are plenty of other examples to study.
Posted: Tue Jun 14, 2005 3:38 pm
by malcolmboston
Buddha443556 wrote:I doubt you'll find a simple explanation of the concepts involved. A login page may seem simple but involves a number of different elements. Cookies, Sessions, Validation, Database, Security just to name a few. Entire books have been written explaining the concepts involved. As for code... Nice thing about open source is ... well it's open source. Download something like
Gallery (since your interested in coding such a program) and take a look how that programmer did it. Maybe that will give you some ideas. If not there are plenty of other examples to study.
best post ive seen in ages, couldnt of said it better myself.
remember, always validate the data the user is inputting to stop SQL injection
Posted: Tue Jun 14, 2005 5:51 pm
by pickle