Hello. Hope some of you can give me an advice. I'm a starter in PHP, and trying to learn a bit about security. (I've got PHP running as an Apache module and a MySQL server.)
What I'm wondering about is how I should construct the login function to prevent someone from stealing userid's and passwords on logon, protecting a session and so on...
I have created a simple form that submits the username and password as POST-data, and a way to destroy the session on logout, but when I navigate back in the browser, the id and password are sent once again as POST-data and the user gets logged in again. Should I do this some other way?
What I'm wondering about is how I should construct the login function to prevent someone from stealing userid's and passwords on logon, protecting a session and so on...
I have created a simple form that submits the username and password as POST-data, and a way to destroy the session on logout, but when I navigate back in the browser, the id and password are sent once again as POST-data and the user gets logged in again. Should I do this some other way?