Blog

Brad Wood

November 01, 2012

Spread the word


Share your thoughts

 

One of the first things you learn with ColdBox is how to add ?fwreinit=1 to the end of your URL to force a reload of the entire application.  This is required to pick up new settings, etc.  Many of you probably leave the reinit password at its default of "1".  While that's fine for your development and testing servers, it's not recommended  on production.  Reinitializing your application can potentially be an intensive operation, and you don't want someone out there having the ability to screw around with your app.  
 
Adding a little piece of mind is easy.  All you need to do is add a "ReinitPassword" setting in your config.
 
coldbox = {
    reinitPassword = 'passw0rd'
};
 
With that in place, you can now reinit the app like so:
 
http://www.yoursite.com?fwreinit=passw0rd
 
Remember, for the new password to take affect, you have to reinit the site one last time with the old password (which is cached in memory).
 
There you go!  You can sleep a little better at night knowing random people can't reinitialize your servers.
 
 
P.S. Do you only want the password on your production servers?  Easy-- just use the environment control I talked about last week.  Set up the production password in your main configure() method.  Then in your development or stage override methods, set coldbox.ReinitPassword back to an empty string.
 
 

Add Your Comment

Recent Entries

Adobe CFSummit 2024 Recap | Ortus Solutions

Adobe CFSummit 2024 Recap | Ortus Solutions

A huge thank you to everyone who visited our booth! We had the pleasure of engaging in meaningful conversations about Modern CFML and ColdFusion development, sharing insights, and exploring exciting new ideas. Visitors also got a chance to participate in some fun activities and win fabulous prizes, including our customized t-shirts, which were a huge hit!

Maria Jose Herrera
Maria Jose Herrera
October 02, 2024
BoxLang September Newsletter

BoxLang September Newsletter

Welcome to the September edition of the BoxLang Newsletter! This month has been packed with exciting updates, new features, and enhancements that continue to shape BoxLang into a robust and versatile programming language. In this edition, we highlight the latest beta releases, new integrations, and key features that have been introduced.

Maria Jose Herrera
Maria Jose Herrera
October 01, 2024
Fall Savings: Unlock Exclusive Discounts Until October 31st!

Fall Savings: Unlock Exclusive Discounts Until October 31st!

Get ready for the Ortus October Fall Savings! This is your opportunity to elevate your development experience with fantastic offers designed for everyone—from seasoned developers to tech enthusiasts. Our special promotions are here to help you achieve your goals while saving money!

Don’t Miss Out on These Amazing Offers!

Use the code FALLSAVINGS24 at checkout to enjoy these incredible discounts before they expire on October 31st

Cristobal Escobar
Cristobal Escobar
October 01, 2024