I'm working on a project on Online Examination. In this when the question paper is shown then the user can go back to the previous page. How can i prevent the user to access the previous page.
You can't prevent a user from clicking the Back button of the browser.
What you can do, though, is maintaining a state in the session.
Example:
When the user accesses a question page, the number of the requested question is compared to the number kept in the session. If it is greater or equal, the number in the session is updated and the access is granted. If it is less, the access is denied and the response is a page that explains why.