Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 November 9th, 2004, 01:03 PM
Authorized User
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default text file or database, which one do i use

Hi, My problem is to keep track of users in case i want to bill them or atleast have a record history for each person. I am very comfortable with text files and will like to store the particulars of each user in a text file, when a person tries to log on, i intend to scan the text file to see if he is already on, my worry is what happens if at that same moment a new user is being created (i.e,the text file with user profiles is being written to) how will this affect the data being read and written. (2.) if updating a text file is done in between application lock and unlock will it have the effect of ensuring that there is no conflict between read and write operations

__________________
Everything takes longer than you expect!
 
Old November 9th, 2004, 01:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I think you are confusing cookies with user account information. Can you explain what you are trying to accomplish in a little more detail?

 
Old November 9th, 2004, 05:02 PM
Authorized User
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Thanks for the quick response. when a user logs on to my web site, he will be prompted to enter his user name and password. after the user enters his name and password, a scan is made in the list of existing names and passwords. if the name already exists, a check will be made to see if he "abadoned" his last useage or if he properly signed out. if he did not propely sign out all his usage records are fetched and the duration of his usage is determined, then he is properly signed out and signed in for the new session. therefore no user can have more than one session going on with his password. My problem is that i intend to allow people to sign up and test the site, therefore it is possible that when a new user is signing up, a scan is being made to check if another persons exists. what happens if this two processes happen at the exact same time, furthermore, can update of records in a text file be done inside application.lock and application.unlock
 
Old November 10th, 2004, 06:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi chinedu,

In your case, I would vote for using Database.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert text file in sql server database sharvari_mothe Java Databases 3 June 5th, 2007 07:25 AM
how to store text file in database vivekkumar_23 Servlets 1 February 13th, 2006 05:29 AM
How to Covert Excel to Text file as Database narendra_patil ASP.NET 1.x and 2.0 Application Design 1 July 20th, 2005 03:01 PM
SQL 2000 database / text file / binary file pallone Javascript How-To 3 January 28th, 2005 01:26 PM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM





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