• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ColdFusion Question

Boethius

Member
I would like to create a preview manager using coldfusion. I have already incorporated the following features:

Admin environment
  • User add/remove/change using MySQL Queries
    Password add/remove/change using MySQL Queries
    Directory add/remove/change using MySQL Queries
    Logout
User envrionment
  • Login/out using MySQL Queries
My question is:
  • How can I using an Application.cfm check each folder for the active user account and thereby permit/prohibit access using session variables?
    What would an API look like for this?
    Are there any special features in CF or is it more of a manual programming task?

Thanks for your interest!
 
I'm sure it can be done...but let me make sure i understand what you are trying to do.

You want to dynamically create directories and then dynamically manage what users have access to each directory?
 
You'll have a login_action.cfm (or similar page) where you wil set <CFSET Session.LoggedIn = True>.

In the corresponding application.cfm pages you would check <CFIF Session.LoggedIn>.

All of these features are builtin CF tags and script.
 
Thanks for the reply!!!

Yes, unfortunately I have already tried that, the session.userid variables are not passed through to the next Application.cfm, and that is why no one can gain access to it. Is there a way of transferring session variables from one Apllication.cfm to another Application.cfm in a subfolder?
I've heard that its possible to use the windows user management for access policies, but it might get complicated because dev. is on windows, and the live server is linux. And using LDAP is complete overkill.

Maybe there is a way of passing variables across Application.cfms without posting, or using a cfinclude template. I could also be thinking in the wrong direction... can anyone help?

Thanks,
 
Back
Top