473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cache expiry?

Hi,

I am trying to use the Cache to pass information between pages, so rather
than load up the query string with vars, I load it up on the first page, but
the cache is empty on arrival to the subsequent page, can I prevent this
using CacheDependency or shall I get my coat?

Many thanks as ever
Colin B
Nov 18 '05 #1
1 1091
Hi Colin,

The Cache is not a good place to pass information to another page with
because the Cache is global to all users. If two users are accessing this
page at the same time you will have inconsistent results.

You should use Session for this.

Now as to why the Cache is empty I'm not sure. If you write it it should
definitely be there on the next hit.

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/blog/
----------------------------------
Making waves on the Web
"Colin Basterfield" <co**************@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am trying to use the Cache to pass information between pages, so rather
than load up the query string with vars, I load it up on the first page, but the cache is empty on arrival to the subsequent page, can I prevent this
using CacheDependency or shall I get my coat?

Many thanks as ever
Colin B

Nov 18 '05 #2

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

Similar topics

2
by: Gareth | last post by:
Does anyone know how to make an ASP.NET (C#) page expire immediately and not be cached? What I want to happen is if the users pressed the BACK button they get a page has expired and has to be...
4
by: Erick | last post by:
i have an asp.net application and I want to save the results of an sql query in cache. Because the queries take 28 seconds to run (there are twelve similar queries) I want to run it all at 4am, ...
4
by: Beren | last post by:
Hello I'm trying to use Cache expiration and its callback feature to easily add automated tasks programmatically. The task should be run when the Cache object expired The problem I'm facing...
3
by: Dragon | last post by:
Session ViewState Cache Already There are Session and ViewState What is the use of Cache ?
2
by: Dst | last post by:
I'm trying to interact with some old asp code. I'm logging into the asp page by posting username/password to the asp page using webrequest / webresponse. Now this works ok, the response back is...
2
by: Don | last post by:
I've come across a weird behaviour with regards to the cache object. I couldn't find any documentation which could explain this. Basically the problem has to do with the cache item NOT expiring....
4
by: ThatsIT.net.au | last post by:
There are a few different ways to use cache in Asp.net. What I want to know is what is the scope of these cache methods. what I mean by scope is are are they cached for the one user or not. if...
2
by: Syed Asad Ali | last post by:
Hi All, Is there any way to expire cache using cache.Insert(...) for a specified date and time? For example :I want to expire cache on Monday 9:30 AM in 1 week time and only on Monday 9:30 AM. ...
7
by: Paulo | last post by:
Hi, how do I force the asp to read the imgs files on server without making changings on IE settings like checking: Every visit on page...? Any hint? any classic asp code line? Thanks!
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.