N
news.microsoft.com
I have an extremely odd cookie problem and had many programmers in the group
looked at it but still with no solution. The following is the synptom:
I have a user control ( for inputting user information) used in many apsx
files. And I used a cookie in the control to remember the inputs. After the
user input the values and click "submit", server will unload this control
and load some other user control. Here is the problem: if I come back to the
same aspx page again after inputing the values in the control, the page can
still "remember" the old values and "lost" the updated information I have
input. It looks like the cookie was not written successfully; HOWEVER the
updated information would appear in other aspx pages that have the same user
control!
Since it looks like a page caching problem, I then added following
statements
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
to all involoved aspx files (I don't know how to disable cache in user
control though), and it still behaves the same. Later on I found the problem
will go away if I killed aspnet_wp.exe process from task manger.
I am totally lost. Any help will be greatly appreciated.
Xiaowei
looked at it but still with no solution. The following is the synptom:
I have a user control ( for inputting user information) used in many apsx
files. And I used a cookie in the control to remember the inputs. After the
user input the values and click "submit", server will unload this control
and load some other user control. Here is the problem: if I come back to the
same aspx page again after inputing the values in the control, the page can
still "remember" the old values and "lost" the updated information I have
input. It looks like the cookie was not written successfully; HOWEVER the
updated information would appear in other aspx pages that have the same user
control!
Since it looks like a page caching problem, I then added following
statements
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
to all involoved aspx files (I don't know how to disable cache in user
control though), and it still behaves the same. Later on I found the problem
will go away if I killed aspnet_wp.exe process from task manger.
I am totally lost. Any help will be greatly appreciated.
Xiaowei