Hi Derek,
Take a look at org-babel-execute:js in ob-js.el, it performs a check of
the :session header argument, and then either performs external
evaluation as currently implemented in org-babel-execute:maxima, or it
performs session evaluation as you have described.
Implementation may be as
I've been poking around in the ob-maxima.el and maxima.el files and I
believe that maxima.el provides the commands necessary to simulate
session support in org-babel. Unfortunately my elisp skills are
rudimentary and I don't know how to write a function that when called
by C-c C-c in the source