What is a good full proof way to protect an admin section of a site? So that if someone is logged in with a standard user role they would be redirected back to the root. Would it better to do that in application.cfc or handle it on the individual pages?
Coldfusion protect admin section questions
113 Views Asked by spacerobot At
1
There are 1 best solutions below
Related Questions in COLDFUSION
- CSV(having extra quotes in field value) to array in ColdFusion
- using some technique to fix the url
- Get number of files in various subdirectories relative to the current page - ColdFusion
- How to create a "VALID DOCX" using Coldfusion?
- Twilio Rest API Filtering using Coldfusion11
- Encoding for html in Open Graph Facebook attributes
- Embedding Image in Microsoft Word using ColdFusion
- CFMail with attachment is being sent and is in undelivr folder
- Error while Running a .exe file using coldfusion schedule task
- Coldfusion 9 serializeJSON()
- How to filter query results based on selection from dropdown list
- Display single digits with leading zero
- Coldfusion Session Timeout Application.cfc
- CFEXECUTE seems to not execute PowerShell in ColdFusion 11
- Joining SOLR Collections on ColdFusion Server
Related Questions in COLDFUSION-2018
- How to create a ColdFusion REST end-point which accepts query parameters
- Creating report getting failed in ColdFusion 2018
- Coldfusion array from form checkbox
- Cleaner way to filter data
- Passing data to a member functions that use a function
- Returning string with diacritics
- "//"-prefixed JSON return giving inconsistent results
- ColdFusion 2018 processing an array of structs
- Coldfusion 2018 clustering and session replication not working
- Coldfusion protect admin section questions
- Try to conver the base64 to image in coldfsuion but its showing it black image
- Unexpected error using the sum function in a QoQ
- Run schedule jobs on Each & every Saturday 5 PM
- ColdFusion 2018 u15 Administrator missing links to log files
- Same user, Different cookies in Coldfusion Log
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The quick and dirty is that you should be using role based permissions. If you load the user's roles on login, you should be able to check if the user has a specific role before accessing various functionality throughout the application.
Let's say you have a basic app like this:
In the
Application.cfcin the admin app folder, you can useonRequestStartto check for the admin role in the user's session object, then kick out (redirect) users that don't have that role. This would give you a single place to control access to all the code under the/admin/folder.The problem with this question is that there are so many ways to address this issue and without knowing how your application is setup, there's no way to know if this can be addressed in such a simple manner with your current implementation.