Jump to content

Login with some security


Darkness Soul

Recommended Posts

Hi,

I've reading some references about mysql, but unlucky..

I've been develop a login system, this login is a form that call a page "action.php" where the validation is executed..

The system work wells, but, i like to know about the securit.. my select is like it:

[code]$sql = ' SELECT * FROM tbUsers WHERE login="'. $login .'" AND pass="'. $pass .'" ';[/code]
is this the best security form to use a login system? please, if its securyless, i want some help..

Thanks folks,

Soul
Link to comment
Share on other sites

[!--quoteo(post=358889:date=Mar 27 2006, 11:20 AM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ Mar 27 2006, 11:20 AM) [snapback]358889[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I'm not sure what you mean by security -- I'd be more concerned about how you're sending the passcode itself.
[/quote]

Someone told me that my sql isnt secure, someone can use it as a vulnerability...
Link to comment
Share on other sites

Read through this [a href=\"http://phpsec.org/projects/guide/\" target=\"_blank\"]security guide[/a], in particular the SQL INJECTION topic and look at the php function [a href=\"http://www.php.net/mysql_real_escape_string\" target=\"_blank\"]mysql_real_escape_string[/a].

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.