Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Session Object v Data Cache

Thread Tools

Session Object v Data Cache

Wee Bubba
Posts: n/a

i have some lookups tables which I need to store when a user logs in.
the data with these tables is user specific. also this data needs to
be accessed for every page so I want to store it somewhere.

i can store these dataTables in the session object or I can store them
inside the data cache using a unique identifier as the key.

i realise that if i place this data inside the session object then the
memory will get freed as soon as the user logs out. but the data is
non updateable and i also know that the data cache offers quick
access and memory scavenging.

can anyone offer me ideas as to what the core differences are? when
should I use one and not the other? are there performance
differences? thanks.
Posted at:
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I cache a DataTable in a Session object? mark4asp ASP .Net 2 06-07-2007 03:45 PM
Session or Cache object Doogie ASP .Net 0 02-12-2007 10:54 PM
Stored Session object is mixed up with another user's session object. momo898 ASP .Net 2 10-12-2006 03:33 PM
Need some ideas to selectively fetch data via object data source or cache... Siva ASP .Net 1 04-24-2006 08:54 PM
Cache object vs Session, Application state for datagrid ASP .Net Web Services 4 03-07-2006 05:25 PM