Restrict User Navigation
Posted: Fri Jul 21, 2006 7:18 am
Hi all,
I have a web application built with php and Oracle. My problem is that after a user successfully logs in, he/she is able to use the browser's 'back' button to go back to the login page and then use the 'forward' button to simply go back to the main page from where all activities can be done.
I want to prevent this such that if the user uses the 'back' button in this manner and attempts to use the 'forward' button to go to the main page, he/she should be re-directed to the login page to re-do the login process.
i thought of using javascript to remove browser's history for every page visited in the application so that at any given instant there's no history and hence no 'back' and 'forward' actions that can be performed, but apparently that cannot be done.
how can i achieve this server-side?
Thanks in advance.
I have a web application built with php and Oracle. My problem is that after a user successfully logs in, he/she is able to use the browser's 'back' button to go back to the login page and then use the 'forward' button to simply go back to the main page from where all activities can be done.
I want to prevent this such that if the user uses the 'back' button in this manner and attempts to use the 'forward' button to go to the main page, he/she should be re-directed to the login page to re-do the login process.
i thought of using javascript to remove browser's history for every page visited in the application so that at any given instant there's no history and hence no 'back' and 'forward' actions that can be performed, but apparently that cannot be done.
how can i achieve this server-side?
Thanks in advance.