G
Guest
I've been reading about the ASP.NET cache object lately out of personal
curiosity and hope someone would enlighten me on a couple points.
It appears the cache object works at application scope, am I right in
assuming that all sessions on the web server will access the same dataset?
For a web site like ours where customers log in to the site this would be a
problem since a new dataset instance is created for each session.
I've traditionally saved the dataset as a session (object Session["myData"]
= myDS; ) before redirecting to a new page to save the dataset. When I open
the new page, I create the dataset from the session object. Would using the
cache instead be quicker and use less code?
Thanks in advance,
Andre
curiosity and hope someone would enlighten me on a couple points.
It appears the cache object works at application scope, am I right in
assuming that all sessions on the web server will access the same dataset?
For a web site like ours where customers log in to the site this would be a
problem since a new dataset instance is created for each session.
I've traditionally saved the dataset as a session (object Session["myData"]
= myDS; ) before redirecting to a new page to save the dataset. When I open
the new page, I create the dataset from the session object. Would using the
cache instead be quicker and use less code?
Thanks in advance,
Andre