Last post Jan 08, 2009 12:24 AM by MuteThis
Jan 05, 2009 11:27 PM|SanjaySutar|LINK
i found some typical behaviour of some of the secured sites like those of banking and credit card sites.
In such sites when back button of browser is clicked it shows a
custom error page and back only works
from a back button explicitly provided on page.
How is that possible ????????
Can anyone guide me in creating such secured pages ????
Thanx in advance
Jan 06, 2009 10:08 PM|MuteThis|LINK
the friendly error page, if it doesn't exist write the cookie as an in memory/session cookie.
Jan 06, 2009 11:25 PM|SanjaySutar|LINK
Hi thanx 4 the reply.
But still doesn't answer my question.
If user clicks on Browser Back Button then is simply shows the previous page from browser cache.
However i have seen in many sites that the browser button doesn't work at all.
It simply shows a Asp.Net custom error page.
Jan 06, 2009 11:40 PM|MuteThis|LINK
I was thinking that when the user used the back button, the previous page would render from the browser cache, it would check for the request id cookie, which is now present, and redirect instead of rendering like it did the first time...
I'm thinking the process would look something like this:
Jan 06, 2009 11:49 PM|MuteThis|LINK
After rereading, you mention "simply shows a Asp.Net custom error page", if you're referring to the "page has expired message", that can be accomplished by immediately expiring the content.
<%@ OutputCache Duration="0" Location="None" VaryByParam="none" %>
If those don't work, you can just search for: immediately expire page
You can set a bunch of headers like pragma & no cache and/or cache-control & private, etc.
Jan 07, 2009 04:41 AM|SanjaySutar|LINK
Is there any example or article focussing this topic ???????
Jan 07, 2009 11:54 PM|SanjaySutar|LINK
anyone implemented this technique ????
Jan 08, 2009 12:24 AM|MuteThis|LINK
There are pleanty of articles on expiring content immediately. As far as detecting back button and redirecting, you're probably hunting for an article or forging new ground...