Jump to content

Login script advice


Startses

Recommended Posts

I've been looking around but not finding anything too helpful to me.

I basically have a user registration/login script that works great.

But when I launch the site I want there to be minimal tampering with any of the sessions and so forth.

I can pretty much create anything in php but the security I know nothing about, aside from doing basic form validating.

 

Anyone have a decent recommendation for some easy-to-read tuts on the subject?  Much thanks ; )

Link to comment
https://forums.phpfreaks.com/topic/169254-login-script-advice/
Share on other sites

sessions are stored on the server, so besides tampering by you, there can't be much tampering on the user end. Are you looking for protection against things like SQL injection?

 

you want to look up the mysql_real_escape_string() function:

http://us.php.net/manual/en/function.mysql-real-escape-string.php

 

along with perhaps trim(), htmlentities(), and stripslashes() depending on what content you are validating

Link to comment
https://forums.phpfreaks.com/topic/169254-login-script-advice/#findComment-893120
Share on other sites

Archived

This topic is now archived and is 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.