I has a login page in my web application,
when the user login my web application through login page, he is redirected to the welcome page.
All this is ordinary, but the problem is when the user press Back button of IE he return to the login page then if he press Forward button of IE he redirected to welcome page and stills logged in.

I want the user to be logged out when he press on Back button to the login page.

You might want to look at how the 'Session' variable is being set/maintained. If a session is created for a user then that remains until the browser session is ended or you directly end it.

What is the code of your login page?

you can use cookies and apply validation for the event if cookies are set.whats the code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.