Furr
Can't get enough of FH
- Joined
- Dec 22, 2003
- Messages
- 1,067
ok, Im just wondering how secure my system is
A user logs on the database checks to see if the username and password match with the mysql database username and a .md5 encrypted password.
if succesfull the user is taken through and two session variables set which are their username and their user id so it could be:
Username = johnsmith@hotmail.com
UserID = 2
Each page checks to see if both these exist
So it would be like this
Select *
From tblname
where Username = $_SESSION['Username'] AND UserID = $_SESSION['UserID']
etc
but i might also have added recordsers that are like this
Select *
From tblname2
where tblename2.userid = $_SESSION['userid']
etc etc
Now I know that using the customers table ID could be a risk as the first 100 of them are ID = 1 or ID = 22
But i need those Id's so i can do alot of recordset filering and data manipulation without using URL string that are visible.
Any ideas..... Would SSL sort this out???
A user logs on the database checks to see if the username and password match with the mysql database username and a .md5 encrypted password.
if succesfull the user is taken through and two session variables set which are their username and their user id so it could be:
Username = johnsmith@hotmail.com
UserID = 2
Each page checks to see if both these exist
So it would be like this
Select *
From tblname
where Username = $_SESSION['Username'] AND UserID = $_SESSION['UserID']
etc
but i might also have added recordsers that are like this
Select *
From tblname2
where tblename2.userid = $_SESSION['userid']
etc etc
Now I know that using the customers table ID could be a risk as the first 100 of them are ID = 1 or ID = 22
But i need those Id's so i can do alot of recordset filering and data manipulation without using URL string that are visible.
Any ideas..... Would SSL sort this out???