i have a login page so once the user enters the correct details he enters into the home page. Now i want to implement 2 things
1. once he clicks the button 'log out' he must be redirected to a page saying" logged out successfully " n even if clicks the back button in the browser, he should not be able to access.
2. if the user leaves the homepage idle for a specific amount of time say 20minutes and then he tries to navigate after 20 mins a msg should display saying "Your Session has been expired login again"
I am not sure about what exactly i need to do, whether use a session variables or session timeout or any other concept.