473,323 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

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.
Nov 19 '05 #1
3 1501
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" <vl*****@radixsys.com> wrote in message
news:OG**************@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.

Nov 19 '05 #2
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" <ch*********@removethis.neudesic.com> wrote in message
news:eP**************@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" <vl*****@radixsys.com> wrote in message
news:OG**************@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.


Nov 19 '05 #3
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" <vl*****@radixsys.com> wrote in message
news:OG**************@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.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marinos Christoforou | last post by:
Sorry if this has been asked before but as an inexperienced wanna-be C# programmer I wondering how to code classes to help build a standard Windows UI. For example to build a common toolbar. I...
2
by: Cindy | last post by:
Hi all you smarties out there, I'm having a little conundrum with my asp.net page Scenario: I have a form (asp.net) with no code behind (as yet). I have placed a javascript function on a...
2
by: Ersin Gençtürk | last post by:
I show errors as popup boxes via alert() but I write this scripts in header of html page.So if there is an error on the server side , in the next postback a popup shows the error via alert , this...
3
by: johncee | last post by:
Greetings, I created a base class that has a datagrid. I've made it generic as possible so that any derived classes pass some info to the base constructor (including a SQL select stmt) &...
2
by: ari | last post by:
I have an MDI form with a listview and a toolbar. I have 2 instances of this form running at once - lets call them A and B. If I am in A, and I click on the listview control in B, then B's enter...
3
by: Tony | last post by:
I have a WebApp with 3 text boxes and 1 button, as described below. Can someone please explain why the bad scenarios are occurring and better still if they can be prevented or worked-around?...
1
by: jhoff | last post by:
I'm trying to use javascript to execute code when the enter key is pressed in a text box. Basically, I'm doing this... <html> <body onload="load()" onunload="GUnload()"> <form name=zipform>...
15
by: tshad | last post by:
I was looking for a way to handle refreshes (user pressed refresh button) and found a piece of code to check if a Web page was refreshed but I can't get it to work. The code is:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.