clanstyles Posted October 9, 2007 Share Posted October 9, 2007 Hey, I'm trying to create the safest account system possible. I was wondering what is the best way. When the "Remeber Me" box is checked I was thinking something like a cookie to encrypt there username but that can be cracked. And if the last IP == YourTIP && username == username then have it let them bbe loged in. if "Remeber Me" is not checked, then have it just use php sessions. Are those safe? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/ Share on other sites More sharing options...
MmmVomit Posted October 9, 2007 Share Posted October 9, 2007 To make it safer, just don't have a "Remember me" option. Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365604 Share on other sites More sharing options...
clanstyles Posted October 9, 2007 Author Share Posted October 9, 2007 but thats just anoying that you have to re-login. Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365606 Share on other sites More sharing options...
MmmVomit Posted October 9, 2007 Share Posted October 9, 2007 Yes, you often have to make trade-offs between security and usability. The "safest account system possible" wouldn't have an option to remember people who have logged in. Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365616 Share on other sites More sharing options...
clanstyles Posted October 9, 2007 Author Share Posted October 9, 2007 Yes I am aware of that and HOW you can get around this. But what is the safest method to using cookies and doing this? I was thinking a combination of IP Checking, Time logged in. But I don't know. Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365620 Share on other sites More sharing options...
clanstyles Posted October 10, 2007 Author Share Posted October 10, 2007 Bump Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365871 Share on other sites More sharing options...
MadTechie Posted October 10, 2007 Share Posted October 10, 2007 OK an idea of the top of myhead.. create an new table, with this when someone hit remember me, it create a new records, and give the user 2 cookies, 1 UID, 2 HASH, if the UID is used with the wrong HASH 5 times its deleted, other than that its kept for X day (or always), Now.. the table also stores a UserHASH = MD5(username.password) (the hashed password) and the userID, remember me is used (via login thing) it uses the cookie to get the userID it then check the MD5(username.password) (the hashed password) to the stored UserHASH, if this is correct then continue else message "please relogin as your details have changed", i think that quite nice:) Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365875 Share on other sites More sharing options...
clanstyles Posted October 10, 2007 Author Share Posted October 10, 2007 Yeah thats not bad. Should I do things like add to taht table a row called ip. If($IP=="THEREIP") { Keep going.. } Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-365920 Share on other sites More sharing options...
MadTechie Posted October 10, 2007 Share Posted October 10, 2007 na, many people have dynamic IP's, Quote Link to comment https://forums.phpfreaks.com/topic/72503-php-account-security/#findComment-366031 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.