I am trying to create a login however do not have access to a database to store the information in. I know I can store it in a text file but I am not sure how I would set up the text file or the cf code to check the access....? Please help!
If you are on a Windows server and depending on the version of CF you are using, you may be able to store the information in an Sccess database and connect to it without a DSN. <cfquery name="selectData" connectstring="Driver= {Microsoft Access Driver(*.mdb)};Dbq=MYACCESSDATABASE.mdb;DefaultDir=c:\SOMEFOLDERNAME\;Uid=ADMIN;Pwd=ADMIN;" dbtype="dynamic"> select username from users </cfquery>
I wouldn't put it in a plain text file that can be served up directly from the root. You could go with CF code and create an array of users with passwords and store it in the application scope. You'd need to be familiar with arrays, scopes, and CF functions to do this.
You could use an xml file for storage if you don't have access to...umm..Access. coldfusion has some stuff to work with xml easily. Also, most hosts worth a ssssalt i know of at least give ya a MySQL db.