Welcome Guest, Not a member yet? Register   Sign In
using id in url / security issue
#2

[eluser]danmontgomery[/eluser]
First, a database ID is not user data... As long as you're checking the current user against the page they're trying to view, it really doesn't matter.

You can hash the id:
Quote:index.php/profile/d389a39f4584dfd3f53cdc453db9a925.html

Code:
$user_id = $this->uri->segment(2);
$sql = "SELECT * FROM users WHERE MD5(CONCAT(first_name, id)) = '" . $user_id . '";

For example.


Messages In This Thread
using id in url / security issue - by El Forum - 02-08-2010, 12:01 AM
using id in url / security issue - by El Forum - 02-08-2010, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB