Jump to content

PHP Account Security


clanstyles

Recommended Posts

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

Link to comment
Share on other sites

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:)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.