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