Why doesn't backspace navigation request for get/post?
<p>Using Node and Express, I check the session to see if a user is logged in, so that if the browser reaches the login page and a session is in place, it redirects to the profile page. However, after logging in, if I press backspace, I am allowed to be on the login page. Then, if I refresh, I get redirected to the profile page. How come this happens, and what can I do to change this? Is this an issue regardless of the framework? Thank you.</p>

<pre><code>router.get('/', function(req, res) {
    if (session.verified) {
        res.redirect(path);
    }
    else {
        res.render('login.html');
    }
});
</code></pre>