prasanna p

prasanna p

  • 1.3k
  • 470
  • 103.5k

how to prevent browser back button

Sep 25 2016 12:53 AM
hi friends
 
I have login in my application.In every page I am checking Session["UserId"] is null or not.If null I am redirecting to Login page.But when user clicks on browser back button it redirects to previous page and it giving object reference error.
 
So how to prevent this when user clicks  browser back button after logout it should display only login page.
 
Thanks in advance
 
 
 
 
 

Answers (3)