473,472 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Page Expiry

Hi,

What is the best way to deal with the "back button" problem i.e. person
clicking back and resubmitting details again.

Page Expiry? If so, how do I set this?

Thanks in advance.

Nov 19 '05 #1
5 1494
Not sure if this is what you are looking for but in my scenario I
didn't want users hitting the back button and looking at old data b/c
they just hit submit. In the page_load event I set the page not to
cache it's data so that when you hit Back, it is refreshing itself each
time. Here is my code .......

' This makes sure that when the Back button is hit, the page
won't be
' cached, ensuring that it is re-loaded.
Response.Cache.SetCacheability(HttpCacheability.No Cache)

Nov 19 '05 #2
Jack..
Scott article here would help..
http://www.4guysfromrolla.com/webtech/111500-1.shtml
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3
Patrick,

First of all, that is *not* a "Scott article".

It's an old, dated, ASP, not ASP.NET, article by Akhilesh Reddy,
based on very old information in an even older article by Phil Paxton.

Secondly, the techniques in that article do *not* solve
the problem if you're programming using ASP.NET.

Thirdly, the technique which *does* work was sent in by tschulken:

Response.Cache.SetCacheability(HttpCacheability.No Cache)
*That* works in ASP.NET...for all browsers.

*Please* try to research your proposed solutions a bit more
before sending in what turns out to be misleading information.

Thank you.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Patrick Olurotimi Ige" <na********@hotmail.com> wrote in message
news:Of****************@tk2msftngp13.phx.gbl...
Jack..
Scott article here would help..
http://www.4guysfromrolla.com/webtech/111500-1.shtml
Patrick

Nov 19 '05 #4
Juan T. Llibre wrote:
Patrick,

First of all, that is not a "Scott article".

It's an old, dated, ASP, not ASP.NET, article by Akhilesh Reddy,
based on very old information in an even older article by Phil Paxton.

Secondly, the techniques in that article do not solve
the problem if you're programming using ASP.NET.

Thirdly, the technique which does work was sent in by tschulken:

Response.Cache.SetCacheability(HttpCacheability.No Cache)
*That* works in ASP.NET...for all browsers.


Unfortunately, this is not true (check out Opera, put a HTTP 1.0 proxy
in between, yada yada). The HTTP spec even wants user agents to serve
local copies when using the "back button" regardless of page expiration
or cache control. But many browser implementations do not follow that
notion and apply caching headers and expiration dates to their
histories.

What makes it even worse is that there is at least one terrible bug in
IE's HTTP header parser, which causes it to react differently on
semantically equivalent Cache-Control headers.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #5
Thanks for all your responses.

Nov 19 '05 #6

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

Similar topics

18
by: | last post by:
Please help. After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff. What I...
1
by: Hardeep Rakhra | last post by:
Hi i have a snippet of JS that i want to change so that the cookie it creates lasts only 48 hours. (or any other length of time i decide, but 48hours seems right for now) Only thing i can't...
4
by: ianv2 | last post by:
Hi Is the following possible using Javascript ? I would like a page to redirect to another page if the page expiry has passed. E.G. If my questionnaireform.html page had an expiry date...
4
by: William Bradley | last post by:
I have two cells on a form. One of them is the "Production Date" and the other is the "Expiry Date". The "Expiry Date" is 183 days after the "Production Date." On an Excel spreadsheet, the...
2
by: William Bradley | last post by:
"Marshall Barton" <marshbarton@wowway.com> wrote in message news:9as9lvgpnp783kogctb88c8giaepb5uf6g@4ax.com... > William Bradley wrote: > >I have two cells on a form. One of them is the...
3
by: hasanainf | last post by:
Hi all, What will be the best database design for an inventory control that uses expiry date for its products. Over a period of time, a particular product will have many expiry date and that...
0
by: mplpost | last post by:
We have created a Certificate for the purpose of symmetric encryption. We did not mention the expiry date explicitly, only later we found out that, if expiry date not mentioned then the default...
2
by: Muhammed Soyer | last post by:
Hi, I wonder whether any good mailing lists for C# and dotnet technologies exist or not. Do you follow any mailing lists for dotnet ? Thanks
2
by: fijsolam1981 | last post by:
Hi, I had created a web application where Session expiry was set to 2,000 minutes in IIS. in web config i had given like this <sessionState timeout="2,000" mode="InProc"></sessionStatebut MY web...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.