Forum Moderators: coopster & phranque

Message Too Old, No Replies

file driven logins

         

shakes911

10:01 am on Mar 2, 2001 (gmt 0)



ok, i've created a text file in which to store usernames and passwords (not able to use a database). Now I'm having trouble writing an ASP login authentication script which searches through the user file and authenticates the username and password accepted from a form.

I've tried using a do while file.AtEndOfStream loop but this doesn't seem to work. Any Ideas?

Thanks

sugarkane

9:35 am on Mar 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm no ASP expert, but I'll ask around and see if anyone can help.

(BTW: Xoc - any ideas?)

NFFC

12:41 pm on Mar 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Seems like you are on the right track, have a look at the example code here [planet-source-code.com].

>not able to use a database

Why?

Xoc

11:39 pm on Mar 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The code example that NFFC quoted is about right.

Of course, if I were doing it, I'd use XML, but that's me. :)