Persisting Data between pages

B

bozzzza

Hi All,

We have a busy website, and I was wondering if we should persist the
data by storing the data table in a session or cookie, and when the
user re-loads the page I can cast the session or cookie back to a
datatable and rebind to the grid.

This is a closed web system so there is no problem getting users to
make sure cookies & javascript is enabled.

When the user clicks refresh for example it will re-load from the sql
server again.

But I am wondering if this is a good idea, apart from the obvious
problem of the data being out of date until the user clicks refresh,
are there any other problems this may cause like using more memory on
the server?


TIA
 
M

Michael Nemtsev

Hello (e-mail address removed),

Why not to use System.Web.Cache for this? where you can set the dependency
on updating cache whenever it required

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

b> Hi All,
b>
b> We have a busy website, and I was wondering if we should persist the
b> data by storing the data table in a session or cookie, and when the
b> user re-loads the page I can cast the session or cookie back to a
b> datatable and rebind to the grid.
b>
b> This is a closed web system so there is no problem getting users to
b> make sure cookies & javascript is enabled.
b>
b> When the user clicks refresh for example it will re-load from the sql
b> server again.
b>
b> But I am wondering if this is a good idea, apart from the obvious
b> problem of the data being out of date until the user clicks refresh,
b> are there any other problems this may cause like using more memory on
b> the server?
b>
b> TIA
b>
 
B

bozzzza

Hello (e-mail address removed),

Why not to use System.Web.Cache for this? where you can set the dependency
on updating cache whenever it required

Thanks I will have a look at this, I also noticed that even comes with
it's own memory management.
 
B

bozzzza

Why not to use System.Web.Cache for this? where you can set the dependency
on updating cache whenever it required


Sorry I forgot to mention its a load balance servers, and the data is
user specific.
 
M

Michael Nemtsev

Hello (e-mail address removed),

You means session info?
So there is no standard way for this, and you need to extend the session
provider to add scalability of session info among nodes in cluster

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
b> Sorry I forgot to mention its a load balance servers, and the data is
b> user specific.
b>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top