Just add some code to your page to read the cookie. Don't just do this in JavaScript because if someone has JavaScript disabled they will be able access your page. I actually have both PHP code and JavaScript code on the same page to read the cookie. That way, if the user clicks the back button after they have logged out, JavaScript will catch it (the page will be cached on their computer so PHP code won't catch it).