Login/Logout page

Posted By: mustangpilot007 ()
Posted On: 2005-Apr-30 23:29

Hi. I'm pretty new to all of this so bare with me. My question is pretty lenghty. I'm am currently desiging a site using a pretty shoddy program. But it does enable me to use html formatting so that's a plus. I am trying to make my site to where I can allow people to register to become members. If someone can explain to me how to create a registration form (i pretty much know how to do this), a login form and answer a few more questions I have, I'd gladly pay a little money for the help. Contact me on AIM at MustangPilot007. Basically I just need a little help with setting it all up. Like, what do I need to allow users to register and stuff like that? just let me know if you can help. Thanks.


Posted By: mustangpilot007 ()
Posted On: 2005-Apr-30 23:41

Let me rephrase: After I've created the login fields/boxes on my page, what is it that I need to do to allow the users to register? How is their registration determined and how does the server know that their password is actually theirs? Do I need to route it to MySQL or something?


Posted By: lizardz ()
Posted On: 2005-May-01 02:38

Register page: click submit, page processes, adds user to database

Login, user signs in, clicks submit, page checks database to see if user exists, if exists, then lets them into the login section.

Pretty basic, just takes time to implement anything like this. You can probably find a generic script on the web that will do it fairly easily, your site will need php, mysql installed and running.

Then you have to add a part to each login content area page that checks if the user is logged in, if not, redirect to login page.

Session cookies are the easiest way to handle that, or standard cookies if you don't need them to login everytime.


Posted By: uk_writer ()
Posted On: 2005-Jun-25 15:35

If you don't want to bother with MySQL you can always use a simple text file to hold the username/password couples. It's not as secure as MySQL, but unless you are handling sensitive material, it's more than adequate, and does cut out having to have MySQL installed and running.

There are a heap of generic scripts out there that will do this for you. It's all fairly straightforward. If you get stuck, PM me and I'll see what I can do to help.