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

BoxLang 1.0.0 Beta 23 Launched

BoxLang 1.0.0 Beta 23 Launched

The latest release of BoxLang, Beta 23, marks a significant step forward in our journey to create the ultimate dynamic language for the JVM. Packed with powerful new features, important bug fixes, and thoughtful optimizations, this update is designed to make your development experience smoother, faster, and more reliable, especially after now starting to take 100s of comments and bug reports from our community.

Luis Majano
Luis Majano
November 23, 2024
TestBox Latest Updates and News!

TestBox Latest Updates and News!

We’re thrilled to have launched the new TestBox website and TestBox 6.0! If you haven’t had a chance to explore yet, visit TestBox to discover updated documentation, powerful resources, and features that make testing more efficient than ever.

Maria Jose Herrera
Maria Jose Herrera
November 21, 2024
Is Your ColdFusion Application Ready for the Future?

Is Your ColdFusion Application Ready for the Future?

In a rapidly evolving digital world, maintaining performance, security, and scalability for ColdFusion applications is more challenging than ever. Whether you're using Lucee or Adobe ColdFusion, legacy systems can become a bottleneck for growth, innovation, and user satisfaction. The need to future-proof your ColdFusion applications has never been more critical.

But where do you start?


The Hidden Costs of an Outdated ColdFusion Application

As you...

Cristobal Escobar
Cristobal Escobar
November 21, 2024