I am new to Servlets and sessions.

I am building a website using Servlets and JSP's.I am using Http connection.

I am using Sessions,After login into my website session is created ,When i click the browser back button again and again ,i can go to the login screen and again on clicking the browser forward option i can enter into the website without any issues.

My expectation is When the browser goes to the login screen,the session should be expired and it should again ask for new password.

Is there anyway i can do it with this http connection.