Forum Moderators: coopster
From there, the username is queried against a users table to find the user_id and if it exists. If it doesnt, it shows the form again with an error, if it does..
then it inserts the moderator row fine and dandy. But my problem is, when I hit the back button to go to previous pages after the form is submit, my $_SESSION['user_id'] reverts to the user_id of the member being promoted to moderator.
Why the heck would this ever occur?
Its a security risk if an admin was promoted to a moderator, because that person could steal the admins identity.