
351
DEVELOPING
COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Las
t
upda
te
d 8/5/2010
The following image shows this flow of control. For simplicity, it omits the log-out option.
Implementing user security
You can implement security in the following ways.
Is a user
logged in?
Applicaton.cfc or
Application.cfm runs
first.
Display
login
form.
Has the user
submitted a login ID
and password?
User submits
form.
Use ID and password to
request user's roles from
login database.
Is the user
valid?
Use cfloginuser to log in the
user and identify roles.
In Application.cfc
(or Application.cfm)
and related files
In
cflogin
tag
In requested page
Is user in role
needed for activity?
IsUserInRole
function
User is valid and
authorized ; do
secured
operations .
User is valid but
not authorized; do
not do secured
operations.
Step 1
Step 2
Step 3
Step 4
Step 5
Form posts to
originally
requested
page.
User requests a
page.
No
Yes
Yes
Yes
No
No
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...