Hi
I have designed a login page and update pages based on users logging in checked against a mysql database. The user is redirected using their 'id' passed in a querystring. This is unacceptable from a security point of view as I can manually change the url to gain access to any record.
I could do without having to start again with this as I'm a beginner and it takes me a while to do anything.
Is there a quick piece of code which I could add to each page which would check the value of a session variable in the database against its id and prevent access to any other id's?
Any other solutions or help would be great.
Cheers
Cammy
I have designed a login page and update pages based on users logging in checked against a mysql database. The user is redirected using their 'id' passed in a querystring. This is unacceptable from a security point of view as I can manually change the url to gain access to any record.
I could do without having to start again with this as I'm a beginner and it takes me a while to do anything.
Is there a quick piece of code which I could add to each page which would check the value of a session variable in the database against its id and prevent access to any other id's?
Any other solutions or help would be great.
Cheers
Cammy