HighTechTalks DotNet Forums  

Module vs. Session

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Module vs. Session in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Richard
 
Posts: n/a

Default Module vs. Session - 11-18-2005 , 06:36 PM






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?


Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: Module vs. Session - 11-18-2005 , 08:04 PM






Sessions are per user, module variables are per application.


"Richard" <Richard (AT) discussions (DOT) microsoft.com> wrote

Quote:
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?




Reply With Quote
  #3  
Old   
Richard
 
Posts: n/a

Default Re: Module vs. Session - 11-22-2005 , 02:03 PM



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.

"Scott M." wrote:

Quote:
Sessions are per user, module variables are per application.


"Richard" <Richard (AT) discussions (DOT) microsoft.com> wrote in message
news:CDD99334-F415-4FC4-8F84-69DC0D88977C (AT) microsoft (DOT) com...
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?





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.