Whats a good way to login users? In a previous application, we just
checked their username + password, if it matched what was stored
in the database we set Session.authenicated = 1. When they logged
out we set it to 0.
But then whenever a user did something user specific, we not only
had to check if they were logged in, but if what they were accessing
their own data only. For example, when they clicked on a mail message
to read it, the URL was something like read_mail.cfm?msgID=445. So
read_mail.cfm not only had to check the value of Session.authenicated,
but also compare the user ID stored with message 445 to the user ID
trying to read it.
Now we're building a new application that still has users as
the first one did, is there a better way to do it this time?
Please don't just point me to a custom tag, I need to learn
how to do this. I have about 6 months CF experience and am
beginning building a very large application. Thanks,
Ryan
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.