I am working on MVC web application in that i want to handle session if we are closing tab or closing browser user should get logout, if user set remember password then only it should get login for next login.