Handling the pressing of the Back button in the toolbar

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Handling the pressing of the Back button in the toolbar

    maybe this is a common problem but since i'm new here in this newsgroup i'll
    just post it anyway.

    my problem is when i logout from my web application and signout the
    formsauthentication. and then press the back button in the toolbar, it goes
    back to the previous page. i dont want my app to do that. it should be
    redirected to the login.aspx page.so how can i handle this problem?

    thanks. hope anyone can help me out.


    Victor Sayas Guest

  2. Similar Questions and Discussions

    1. Pressing a button from another button?
      Is it possible to press or click a button by pressing another button. I know it might seem strange, but it will be very handy if it is possible? ...
    2. Pressing a button from another function?
      is there anyway of pressing a particular button from another function? If I have created my own button? is this possible? if anyone can help, this...
    3. Toolbar gone -- won't come back.
      In FreeHand MX 11.0, I was dragging the main toolbar around to see if I could dock it somewhere, and it just disappeared! Now, if I press Ctrl-F2...
    4. Pressing button by AS
      How can I make button state "Down" with Actionscript only. I need to change button state by pressing keyboard key. Thanx)))
    5. Append a text line by pressing a submit button
      Hi, I made a small text field form, now I want to append the name of the text to a new line by pressing a submit button. The form action =...
  3. #2

    Default Re: Handling the pressing of the Back button in the toolbar

    The back button is displaying the page from the local cache. You will have
    to disable the local caching of pages.

    Put Response.Cache.SetCacheability(HttpCacheability.No Cache) in the
    Page_Load event handler. This will disable page caching.



    --

    Chris Rolon
    "Victor Sayas" <vlsayas@radixsys.com> wrote in message
    news:OG8sX4lCFHA.3376@TK2MSFTNGP12.phx.gbl...
    > maybe this is a common problem but since i'm new here in this newsgroup
    i'll
    > just post it anyway.
    >
    > my problem is when i logout from my web application and signout the
    > formsauthentication. and then press the back button in the toolbar, it
    goes
    > back to the previous page. i dont want my app to do that. it should be
    > redirected to the login.aspx page.so how can i handle this problem?
    >
    > thanks. hope anyone can help me out.
    >
    >

    Chris Rolon Guest

  4. #3

    Default Re: Handling the pressing of the Back button in the toolbar

    If you are using forms authentication then most probably you are setting
    session, what u will need to do is abandon the session on logout
    Session.Abandon();

    Hope this Help
    Khan Imran

    "Chris Rolon" <chris.rolon@removethis.neudesic.com> wrote in message
    news:eP9lsYsCFHA.1604@TK2MSFTNGP10.phx.gbl...
    > The back button is displaying the page from the local cache. You will have
    > to disable the local caching of pages.
    >
    > Put Response.Cache.SetCacheability(HttpCacheability.No Cache) in the
    > Page_Load event handler. This will disable page caching.
    >
    >
    >
    > --
    >
    > Chris Rolon
    > "Victor Sayas" <vlsayas@radixsys.com> wrote in message
    > news:OG8sX4lCFHA.3376@TK2MSFTNGP12.phx.gbl...
    >> maybe this is a common problem but since i'm new here in this newsgroup
    > i'll
    >> just post it anyway.
    >>
    >> my problem is when i logout from my web application and signout the
    >> formsauthentication. and then press the back button in the toolbar, it
    > goes
    >> back to the previous page. i dont want my app to do that. it should be
    >> redirected to the login.aspx page.so how can i handle this problem?
    >>
    >> thanks. hope anyone can help me out.
    >>
    >>
    >
    >

    Khan Imran Guest

  5. #4

    Default Re: Handling the pressing of the Back button in the toolbar

    thanks for your help guys. all your help enhanced my application. but i was
    wondering if you can just automatically disable this back and forward
    buttons? can i do that? and if yes, how? thanks again.


    "Victor Sayas" <vlsayas@radixsys.com> wrote in message
    news:OG8sX4lCFHA.3376@TK2MSFTNGP12.phx.gbl...
    > maybe this is a common problem but since i'm new here in this newsgroup
    > i'll just post it anyway.
    >
    > my problem is when i logout from my web application and signout the
    > formsauthentication. and then press the back button in the toolbar, it
    > goes back to the previous page. i dont want my app to do that. it should
    > be redirected to the login.aspx page.so how can i handle this problem?
    >
    > thanks. hope anyone can help me out.
    >

    Victor Sayas Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139