all groups > asp.net caching > november 2005 >
You're in the

asp.net caching

group:

Module vs. Session


Module vs. Session Richard
11/18/2005 3:36:03 PM
asp.net caching:
If I store a dataset in a public variable in a module (not a class, but a
module, like the old .bas file in VB), how is that different from storing it
into a session object? Both can be accessed by any web form. Are there
advantages/disadvantages to using one over another?
Re: Module vs. Session Scott M.
11/18/2005 8:04:28 PM
Sessions are per user, module variables are per application.


[quoted text, click to view]

Re: Module vs. Session Richard
11/22/2005 11:03:01 AM
Oh, I see. I thought module variables were global only to the current user. I
didn't realize they were global to the application. Thanks for clarifying.

[quoted text, click to view]
AddThis Social Bookmark Button