hi I am Abhijit. I coded this small module which uses session. But i want the logout functionality. Thus i used invalidate() function . This is my code
The rest is working good, it is printing the name - value pair in the while loop
My main concern is how to write a code which is based on login-logout function . If somebody help me it is very good for me.
When I click logout link it is going to login page, but when i again click the back button of the browser, it is again going back to the previous page instead of redirecting to the same login page
so please help me
The OP is already doing session.invalidate(). When you click back, you see the logged in page back, it's most probably the cached page been shown by the browser. So, we need to restrict the browser caching.
Good night. Drive safely. Here's a tiny ad for the road:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop