Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Site Security...an array of passwords? 1

Status
Not open for further replies.

TulsaJeff

Programmer
Jan 29, 2001
870
US
I am setting up a secure area for one of my clients. I have used "if" statements and "else if" to create a validation test for multiple passwords which works great right now and there is only a few passwords needed.

Oldnewbie mentioned using an array of passwords that can be read as a separate list I suppose and make it a little less tedious to add new passwords.

would it be possible for someone to shed some light on this for me? ...I obviously understand what an array is but how to set one up using actionscript is quite beyond me at this time in my career.

One other element would be how to "fix" the site where members only have to log in (1) time per visit. If they go back to the start and then realize they need to return to the secure area ...they should not need to logIn again....how is this accomplished?

Any help will be appreciated. Ya' Gotta Love It!:)X-)
 
Hi Tulsa!

My suggestion seemed logic last night, but I'm no expert yet in scripting either, and rushed for time today, I don't have time to really look into it further at the moment.

My line of thought was quite simple... Load an array of accepted passwords from a .txt file (that can be updated...) and write an actionscript(can't be more than a few lines) that would compare the inputed password with those in the array. As soon as you have a match, the user is allowed in!

Although they don't answer your question directly
I suggest you have a look at these:



... And maybe even contact Lisa Kushins(she is offering her help all over her tutorials): lisa@lackoffocus.com

She might be able to help you faster than I could in the next few days!

As for your second question... My guess is that this could probably be done with cookies, another area I haven't really looked in. Did suggest something on cookies in another thread: thread250-62136

You may want to have a look at that one also. Maybe something there!

B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top