I've built a basic MVC framework for my app
it works as follows
the app is accessible using only one file which is index.php
then it generates the pages required in the backend and then store it in a variable and then echos it out.
so if i want to display the members page the person enters the username and password and this data is posted and checked against a database and if the details match then it generates a members page and stores it inside a variable and then echo statement echos the page out. if the username and pass doesnt match then error page is generated and stored in a variable and then echoed.
so here is the problem. if someone logs out then home page is then regenerated and session killed and all that. but i have a problem when someone clicks back button. because when the back button is pressed the posted form data is reposted. meaning the username and password so it relogs the user in.
How can I get around it?
sorry for the long explaination.