locked
preventing page review after Logout of USER RRS feed

  • Question

  • User1762613338 posted

    Hello

     In my application whenever user logout , He goes to the log in page.

    But when i click back of Browser window it again display the previous pages which is not secure. So please tell me how i can revert user to login page on click of back button  ...?

    Thursday, January 25, 2007 3:30 AM

Answers

  • User1762613338 posted

    Thanks for reply..!

           i have written this code in page load event of page but yet it is not working, now also when i click "Back" Button i get previous pages please guid me if i am missing anyithing.!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 26, 2007 11:54 PM
  • User1762613338 posted

    Thanks Michiel for giving me direction.......![:)]

             Now it is finely working  Ihave added following lines to the code

     

    Response.Cache.SetNoStore();

    and it is working finely.......!

    thanks 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, January 27, 2007 12:12 AM

All replies

  • User-384517966 posted
    This is because the browser has cached the page. You can try adding this in the page
    Response.Cache.SetExpires ( DateTime.Now.AddMinutes ( 0 ) ) ; 
    Thursday, January 25, 2007 5:29 AM
  • User1762613338 posted

    Thanks for reply..!

           i have written this code in page load event of page but yet it is not working, now also when i click "Back" Button i get previous pages please guid me if i am missing anyithing.!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 26, 2007 11:54 PM
  • User1762613338 posted

    Thanks Michiel for giving me direction.......![:)]

             Now it is finely working  Ihave added following lines to the code

     

    Response.Cache.SetNoStore();

    and it is working finely.......!

    thanks 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, January 27, 2007 12:12 AM