Module Session Variable
Jamroom Developers
In my mind, jrCore_set_flag() jrCore_get_flag() are for passing a value across locations during a single phase. Like if I was in an event listener in my module, but needed to take action on that later on in the cycle of things for whatever reason, perhaps check the state of things at one listened for event, then do something at another event listener.
jrCore_set_temp_value() jrCore_get_temp_value() are useful for passing things across ajax boundaries. Like the search parameters that came in to the main page, then save them to a set_temp_value to preserve them for the pagination that happens via ajax. It means you dont need to pass them in with every ajax request, just see if they are set.
and set_cookie is useful for preserving the user chosen last state of things, like if you wanted to always use the same size of image. let the user save the size of image they are interested in and re-select that next time for them by default.