Results 1 to 4 of 4

Thread: how to disable the page if user push 'back'

  1. #1

    Thread Starter
    Hyperactive Member temp_12000's Avatar
    Join Date
    Jan 2004
    Location
    LA, USA
    Posts
    411

    how to disable the page if user push 'back'

    I have an aspx page. A user can push 'logout' button to logout. However, after logout, if the user push 'back' botton in IE's menu, the IE will show the aspx page before logout. How can I prevent this? So, after logout, even user push 'back', it won't show the page.

    thanks



  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    dont allow a caching the pages so it forces a refresh, and the first thing you should do on any web page that a user needs to be logged in is check to see if they are logged in. Since they wont be once they have logged out, it could redirect them to the login screen

  3. #3

    Thread Starter
    Hyperactive Member temp_12000's Avatar
    Join Date
    Jan 2004
    Location
    LA, USA
    Posts
    411
    Originally posted by kleinma
    dont allow a caching the pages so it forces a refresh, and the first thing you should do on any web page that a user needs to be logged in is check to see if they are logged in. Since they wont be once they have logged out, it could redirect them to the login screen
    So, does that mean the users' browser must accept cookies?

    thanks



  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    session cookies, i think session cookies are not treated the same as regular cookies, but I am not possitive on this. I am also not positive as to how ASP.NET sessions interact on the client level, as I have just moved to .NET, but in traditional ASP that is how it worked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width