3

Can setNextEvent() persist variables to be restored in prc of the destination event?

Thanks.

Henry
  • 32,689
  • 19
  • 120
  • 221

1 Answers1

4

No, the built-in persist and persistStruct functionality only applies to the request collection (rc). You could put in a ticket for this if you like: https://ortussolutions.atlassian.net/projects/COLDBOX

In the mean time, you can easily accomplish this manually via Flash Ram: http://wiki.coldbox.org/wiki/EventHandlers.cfm#Flash_Variables

Brad Wood
  • 3,863
  • 16
  • 23
  • Yes. http://coldbox.ortusbooks.com/content/configuration/configuration_directives/flash.html – Brad Wood Mar 06 '15 at 18:17
  • Brad -- link is no longer valid. – Will Belden Feb 28 '17 at 15:46
  • Thanks for the note, the new URL is https://coldbox.ortusbooks.com/content/full/configuration/coldboxcfc/configuration_directives/flash.html Please note GitBook is down today so the link might not work at the moment. – Brad Wood Feb 28 '17 at 19:55
  • 1
    Looks like the page moved again, this time to https://coldbox.ortusbooks.com/getting-started/configuration/coldbox.cfc/configuration-directives/flash. @BradWood You should create 301 redirects for the old URLs to avoid leading people (and search engines) into 404s. (Same applies to the link in your answer, btw.) – Sebastian Zartner Jun 15 '18 at 13:02
  • Sadly, GitBook is a 3rd party documentation platform that we have no control over so it's not an option for me to create redirects. Gitbook had a recent huge update that broke tons of our stuff and we had to rework the docs again to fix everything. – Brad Wood Jun 15 '18 at 16:34