Get in tight with a veteran CF developer and hit him/her up for a basic
security framework. Anyone with experience could probably whip one up in an
hour or so. Security models come in many shapes and sizes so have a good
grasp of what it will need to do before asking someone for help.
Here's a tip for getting started:
Learn the basics of FuseBox. The details are less important than the
overall concept which can be bent and shaped to suit almost any need.
Once you do that you can use Application.cfm (or app_globals.cfm if you're a
stickler to FB) to check for the existance of a security token such as
cookie.userID or client.userID. If said token does not exist then set
url.action to "login" and drop through to the underlying fusebox where a
login page will be displayed. After submitting the login page you'll have
an action page that checks for the existance of the form fields and queries
the DB. If the query comes up blank you drop through again, if the query
comes back good then set the security token and relocate to a home page.
WARNING: in application.cfm if the user isn't logged in DO NOT use a
cflocation to any folders that will call that application.cfm again. This
will result in an endless loop.
Good luck :)
Bryan Love Macromedia Certified Professional
Internet Application Developer / Database Analyst
Telecommunication Systems Inc.
[EMAIL PROTECTED]
"What father would hesitate to say 'if there must be trouble let it be in my
day, that my child may have peace'?"
- Thomas Paine, An American Crisis
-----Original Message-----
From: Avena Weddle [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 8:48 AM
To: CF-Talk
Subject: User Login
Hi there. I'm new to the list and am an absolute baby to the CF world. I
am trying to find the best way to learn CF. I work for a community
college, and my goal is to write our web site in CF giving the faculty
and staff the option of logging in and changing their own content. I
have read two (not so great) books on CF and done the skillbuilding CD.
I would like to take the Fast Track to CF course and then the Advanced,
but my boss is being stingy about springing the $ for the courses. He
thinks I should just keep reading the books and fumble around. (He is
not in IT by the way and has no clue what CF or even web development
are.)
I just feel like I'm stubbling along learning this stuff, and I'd really
like to get going on it with some confidence. Any suggestions at all
would be greatly appreciated.
Thanks
Avena
--
Avena Weddle
Web Content & Design Specialist
Southwestern Oregon Community College
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists