View Single Post
  #5 (permalink)  
Old June 23rd, 2004, 05:18 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Application.Lock does not lock the entire application; all it does is block other ASP pages from writing to the variables stored in the Application object. This is to prevent two users from writing to those variables at the same time.
Even if it would work, it would be a bad idea. It's not very good for performance and availability to lock an entire application for *all* users, just because you need to write to a file.

Personally, I would never try to store information like this in a text file. Text files in Web applications are not an ideal scalable solution.
Why don't you use a database? Databases are designed for multi-user environments.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Micro cuts by Muse (Track 7 from the album: Origin of symmetry) What's This?
Reply With Quote