Support Forums
Log-in - Member functions - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: Log-in - Member functions (/showthread.php?tid=20370)

Pages: 1 2


Log-in - Member functions - Sam - 07-09-2011

Hi there, I'm quite a code PHP coder but I'm not really famlliar with secure registration log-in and like a "members area" so to speak.

Does anyone know of any good guides, or existing source codes - dev projects which include features like:
  • Registration- Email verification
  • Log-in
  • Members area dependent on account type
  • Admin area to set account type for users, like what they can access.

I'd really like to teach myself and advance my knowledge in these areas.

Much appreciated if anyone can help me out on this Smile


RE: Log-in - Member functions - AceInfinity - 07-09-2011

After some extensive research I found this:

http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/
http://www.developertutorials.com/tutorials/php/secure-website-login-060817-1006/
http://php-login-script.com/

All of these I believe get you what you want for an idea of user levels, and securing an input. I know personally that MyBB doesn't do anything with the data input sent in, whereas vBulletin actually encrypts your password into an md5 hash with the POST method. Doing things like that will secure a logon.

Email verification is fairly simple too.

Also, if you don't already know, libcurl would be very useful if you know how to use it in this case too. It does support POST data, and you can use it to save session information and other data to a local file to keep a session alive. It's pretty powerful.


RE: Log-in - Member functions - Sam - 07-09-2011

It wasn't going to be for MyBB or any forum software. Thanks for the reply Ace, I'll look them over.


RE: Log-in - Member functions - specizripn - 07-09-2011

Did you find what you were looking for?


RE: Log-in - Member functions - Sam - 07-09-2011

Please still offer suggestions everyone. I'll look through them all and take snippets from each. The more the better.


RE: Log-in - Member functions - AceInfinity - 07-09-2011

(07-09-2011, 06:39 PM)Sam Wrote: It wasn't going to be for MyBB or any forum software. Thanks for the reply Ace, I'll look them over.

Ahh, I thought you either wanted to combine the login of the database for that forum of yours, or have a login process seperate from the forum on a different page... Or do you have a website without a forum that you want to have a login for?

Either way, from my experience, i've found combining the login data from a forum (PhpBB) to a website login quite difficult. And if you don't take security into consideration, it can be disastrous.


RE: Log-in - Member functions - Sam - 07-09-2011

It'll be for a standalone project. New log-in databases and new coding from the ground up. So I need example of previous similar code snippets and guides to help me improve my knowledge.


RE: Log-in - Member functions - AceInfinity - 07-09-2011

This link that I gave here then will be a starting point for you before reading anything else:
http://www.developertutorials.com/tutorials/php/secure-website-login-060817-1006/

It's got every aspect of truth to it that I can see. Based on my knowledge with MySQL databases especially. The outline is great...


RE: Log-in - Member functions - Omniscient - 07-09-2011

Look into member login classes.

http://www.ineedtutorials.com/code/php/complete-advanced-login-member-system-php-tutorial


RE: Log-in - Member functions - Sam - 07-10-2011

Thanks for the links everyone, I'll read through them all.