> In an application that I'm developing for some internal
users, I want all
> users to view some of the templates but only authorized
users to access
> certain
> other templates/functions.
>
> If I place the cflogin in the application.cfc, it tries
to force a login
> to
> any template whether secure or not. I'm able to force
users to a login
> (using
> getAuthUser, isInRole, etc.) if they page requires it,
but I do not want
> folks
> to login if they are only viewing the information.
>
> How can I structure the onRequest Start (I'm assuming
that is the function
> I
> would use) so that it would only hit cflogin when
necessary?
the easiest way would be to place all the templates you want
protected in a
separate directory with its own application.cfc file
--
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technology, Inc.
------------------------------------------------------------------
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/