[coldbox-3.5.3] turning off flash

i have a restful api and dont need session/client variables.

how do i turn off the flash?

You just need to adjust the flash settings and create a customFlashScope that does nothing. Code below

Hope that helps,

Curt

//set the flash ram to nothingness

flash = {

scope = “model.CustomFlashScope”,

properties = {}, // constructor properties for the flash scope implementation

inflateToRC = true, // automatically inflate flash data into the RC scope

inflateToPRC = false, // automatically inflate flash data into the PRC scope

autoPurge = true, // automatically purge flash data for you

autoSave = true // automatically save flash scopes at end of a request and on relocations.

};

Model.CustomFlashScope cfc code

component extends=“coldbox.system.web.flash.AbstractFlashScope”

hint=“A customized implementation of the ColdBox flash scope.” {

public any function init(controller) {

super.init(argumentCollection=arguments);

return this;

}

public any function getFlashKey() {

return ‘’;

}

public any function saveFlash() {

return ;

}

public any function flashExists() {

return false;

}

public any function getFlash() {

return {};

}

public any function removeFlash() {

return ;

}

}

that worked.

thanks!

Or use the MockFlash included in the Core

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Show off, I didn’t know that existed. Not sure how I missed that.

Curt

image001.jpg