kaht
09-09-2003, 10:48 AM
I've got my page to expire when clicking the back button after a form validation using the following code:
Response.Buffer = 1;
Response.ExpiresAbsolute = 'Jan 1, 1980';
Response.Expires = 0; // Ensure that this page is not cached.
Response.CacheControl = "no-cache";
This works almost completely perfect. I'm getting the desired effect, the form has to be reloaded in order to resubmit the form, instead of just being able to click back to get to the dataprocessing page. However, this page displays:
Warning: Page has Expired
The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
Upon hitting the refresh button, I have it set up to go back to the login page. However, the message that displays says "to resubmit your information" and upon refreshing, it goes back to the login screen. Although this is such a small detail, I'm sure that one of the users is going to complain that it's not working correctly. So, my question is this. When a page expires, is there a way to display a customized page instead of the default that IE displays. Showing the properties for that page shows this location:
res://mshtml.dll/repost.htm
which looks like it can me modified through the registry. However, that approach seems like it might be more trouble than it's worth, not to mention what sort of flags might pop up by any virus checkers when attempting something like this. I could be wrong.... I'm not very experienced at this sort of thing. Any input/help is appreciated.
-kaht
Response.Buffer = 1;
Response.ExpiresAbsolute = 'Jan 1, 1980';
Response.Expires = 0; // Ensure that this page is not cached.
Response.CacheControl = "no-cache";
This works almost completely perfect. I'm getting the desired effect, the form has to be reloaded in order to resubmit the form, instead of just being able to click back to get to the dataprocessing page. However, this page displays:
Warning: Page has Expired
The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
Upon hitting the refresh button, I have it set up to go back to the login page. However, the message that displays says "to resubmit your information" and upon refreshing, it goes back to the login screen. Although this is such a small detail, I'm sure that one of the users is going to complain that it's not working correctly. So, my question is this. When a page expires, is there a way to display a customized page instead of the default that IE displays. Showing the properties for that page shows this location:
res://mshtml.dll/repost.htm
which looks like it can me modified through the registry. However, that approach seems like it might be more trouble than it's worth, not to mention what sort of flags might pop up by any virus checkers when attempting something like this. I could be wrong.... I'm not very experienced at this sort of thing. Any input/help is appreciated.
-kaht