Jump to content

Recommended Posts

Hi, I've been using php for about a year and a half now but I'm having a lot of trouble designing a good solid login system. My current system runs the profile, account settings, register and login system all from 4 files.

 

I fell it’s to centralised. I want to have a file for each single system, e.g. the login page is just one page with all the functions and database connection and error handling all in one.

 

Could someone please give some suggestions on how I could achieve this or show some example?

 

Thanks in advance for anyhelp.

Link to comment
https://forums.phpfreaks.com/topic/110257-application-design-user-login-system/
Share on other sites

Take a look at the MVC Pattern [1]

 

In this case, your View would be the page itself, the Controller would be the logic behind login/authentication/etc, and Model would be the User (and it's supporting/related objects)

 

[1]: http://en.wikipedia.org/wiki/Model-view-controller

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.