Click to See Complete Forum and Search --> : output cache not working properly


shethashish_a
April 7th, 2003, 02:25 AM
Hi all,
Sorry, I have put some html code for the user control but it is not displayed properly, so i am submitting again.
I have a typical problem regarding fragment caching.
I have a user control that displays currently logged in user's data. I have put that user control on every page of asp.net application. I want the control to be cache so that the page takes less time to process.
There is one button "Log out" in that user control, onclicking of that button user is redirected to login page.
Now what happens when i click the logout button of the user control from any page,
the whole page is cached and is displayed again instead of redirecting to the login page.

The code for the user control is in the text file attached with this message.

can anybody help me to solve the problem. I can't understand why this is happening.?

Thanks in advance,
Ashish

gknierim
April 7th, 2003, 08:41 PM
What is your codebehind for your Logout button?

It should say something like Response.Redirect("logout.aspx")

What you listed only shows the html code.

Also, if it does say that, note that the output cache is going to keep the same page in cache for 120 secs(or is that minutes...i cant remember). What this means is that since the page is cache, it will not respond. Try taking out the Cache and see what happens.

HTH,
Greg