To disable the back button of browser (internet explorer, Microsoft) and to clear the cache
write this two line of code in your pageload event
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
The above two lines will clear cache of the last visited page.
now on every page i think you must be checking that a particular user is logged in or not (with session variable).
if user=session("usersession") then
response.redirect("~/Next page.aspx", False)
else
response.redirect("~/Loginpage.aspx", False)
endif
write this two line of code in your pageload event
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
The above two lines will clear cache of the last visited page.
now on every page i think you must be checking that a particular user is logged in or not (with session variable).
if user=session("usersession") then
response.redirect("~/Next page.aspx", False)
else
response.redirect("~/Loginpage.aspx", False)
endif
Comments
Post a Comment