Hi skp,
What you want to achieve is not possible.
You need to rethink your application logic so that it doesn't matter if the user presses the back button.
You have to handle this thing into your code.
Instead of disabling back functionality you should check user's authentication on your pages. Check whether the user has logged in.
If he doesn't that he should be redirected to the login page.