Session vs singleton pattern

Posted by chobo on Stack Overflow See other posts from Stack Overflow or by chobo
Published on 2010-05-12T19:07:31Z Indexed on 2010/05/12 19:14 UTC
Read the original article Hit count: 170

Hi, I have a web application where I would like to pull user settings from a database and store them for Global access. Would it make more sense to store the data in a Singleton, or a Session object? What's the difference between the two?

Is it better to store the data as an object reference or break it up into value type objects (ints and strings)?

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET