Hi All,
I am working on a login for a website admin system, it's nothing mission critical or anything but I want to do it well.
At the moment the user logs in and I post the username and password to the next page where it is checked against database values.
Just now I've realised that I think a user could get the successfully logged in page from the browser history, once they have it they could use the firefox web developer plugin (or something similar) to view the hidden form values and then use them to log in.
I've been trying to think of a better way and I was wondering if it would be that you log in and your username and password are passed to a script only page that sets a temporary cookie - the prescence of this cookie is then tested for on each protected page.
I think a session cookie would be best as this times out after a period of inactivity.
Does anyone know of a good way to do this - I just need pointing in the right direction, cheers C
I am working on a login for a website admin system, it's nothing mission critical or anything but I want to do it well.
At the moment the user logs in and I post the username and password to the next page where it is checked against database values.
Just now I've realised that I think a user could get the successfully logged in page from the browser history, once they have it they could use the firefox web developer plugin (or something similar) to view the hidden form values and then use them to log in.
I've been trying to think of a better way and I was wondering if it would be that you log in and your username and password are passed to a script only page that sets a temporary cookie - the prescence of this cookie is then tested for on each protected page.
I think a session cookie would be best as this times out after a period of inactivity.
Does anyone know of a good way to do this - I just need pointing in the right direction, cheers C