Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2005, 04:41 AM
Registered User
 
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript and printer preferences CmdrDuh VB How-To 0 November 9th, 2007 03:07 PM
Application Preferences And Resource Files geomar General .NET 0 November 14th, 2006 01:35 PM
A Chat Application using Context and Sessions kotaiah J2EE 0 October 10th, 2006 09:56 PM
Sessions & Application NitinJoshi General .NET 1 January 17th, 2005 02:52 AM
Mixing classic ASP sessions with ASP.NET sessions scorpion_king General .NET 2 August 4th, 2004 08:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.