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

Into the Box 2024 Last Early Bird Days!

Into the Box 2024 Last Early Bird Days!

Time is ticking, with less than 60 days remaining until the excitement of Into the Box 2024 unfolds! Don't let this golden opportunity slip away; our exclusive Early Bird Pricing is here for a limited time only, available until March 31st. Why wait? Secure your seat now and take advantage of this steal!

Maria Jose Herrera
Maria Jose Herrera
March 20, 2024
Ortus February Newsletter 2024

Ortus February Newsletter 2024

Welcome to Ortus Solutions’ monthly roundup, where we're thrilled to showcase cutting-edge advancements, product updates, and exciting events! Join us as we delve into the latest innovations shaping the future of technology.

Maria Jose Herrera
Maria Jose Herrera
March 06, 2024
Unveiling the Future of CFML Development - 3rd Round of Sessions

Unveiling the Future of CFML Development - 3rd Round of Sessions

Welcome back to our journey into the future of CFML development! As excitement continues to build for Into the Box 2024, we're thrilled to bring you the latest updates on what promises to be a transformative event. Continuing our blog post series, let's delve deeper into the third wave of session releases and discover the key surprises awaiting attendees. Learn More

Maria Jose Herrera
Maria Jose Herrera
March 01, 2024