XML, Sessions and Application Preferences
Hi guys,
I am in the process of building a custom back-end system to update news stories on a website.
I want to store various preferences semi-permanently in an XML file - things such as default authors, RSS settings and so on. The preferences can be edited through a separate ASPX page.
Each time a news story is added, the preferences will need to be loaded.
Is it best to
1. Read in the XML file each time the preferences are required in the "Page Load" sub, or,
2. Read in the XML file in Global.asax when the application starts (i.e. the user logs in to the admin section) and then store these as session variables?
I'm not sure there is that much difference in performance, guess its a question of whether reading XML is more efficient/better than using session variables.
cheers
Graham Wilson.
|