shedokan Posted June 21, 2008 Share Posted June 21, 2008 I am creating a CMS and I am now in the proccess of making a login system. in my login system when I login an account, should I remember the password or remember an automatic generated id wich is stored in the database by the user name? and should I check if the user's login details are correct with the database every page load or every time the session is over? Link to comment https://forums.phpfreaks.com/topic/111226-what-is-a-better-choise-for-login-details/ Share on other sites More sharing options...
DanielWhite Posted June 21, 2008 Share Posted June 21, 2008 The auto gen ID sounds better. For the second bit, it depends on your server, if your allowed a lot of MySQL connections go ahead with every page/where it's needed. If your only allowed to have a few connections then why not check the details on pages where you can change things, such as posting/changing user account details. Link to comment https://forums.phpfreaks.com/topic/111226-what-is-a-better-choise-for-login-details/#findComment-570876 Share on other sites More sharing options...
shedokan Posted June 22, 2008 Author Share Posted June 22, 2008 the generated id was my choise too but I wasn't sure. the sencond one is an excelent idea! thanks. Link to comment https://forums.phpfreaks.com/topic/111226-what-is-a-better-choise-for-login-details/#findComment-571374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.