One suggestion I've seen is to have an application.cfm in the secure directory that simply checks whether the visitor is logged in. If not then it just redirects them to the root level, otherwise it just cfincludes the top level application.cfm. It seemed reasonable to me but I'd be interested in comments from others...


Brett
B)


Sean Corfield wrote:
On Fri, 25 Jun 2004 01:09:14 +1000, Vidar Einlien <[EMAIL PROTECTED]> wrote:

Hi, I have a webapplication that has an Application.cfm which takes care of
logging in a user using cfc. The problem is I want to let people be able to
access the index.cfm at top level in the folder hierarchy, but any other
file/folder will requiring them to log in. The way it is now any file that
you access requires you to log in. I know I can put an Application.cfm in
every folder but I just want to have one at the top level.
Any ideas on how to solve this?


Why not restructure your app slightly like this:

/toplevel
    Application.cfm
    index.cfm
    /secured
        Application.cfm with security
        /subdir1
        /subdir2
        /subdir3

You could also have an /unsecured folder and place things under that
which don't need to be secured...

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



--
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au


--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to