OK, I always make progress after I post.
Apparently, when the function is being called, the session hasn’t been started. So if I modify the function as so, the session data is saved:
function my_cforms_action($cformsdata) {
session_start();
$_SESSION['mbcdata'] = $cformsdata;
@mail('xxxxx@example.com', 'cforms my_action test', print_r($_SESSION,1), 'From: webmaster@xxxxxx.org');
}
The next time I visit a page, my session variables are nicely preserved. However, now that leads to another problem. With the addition of “session_start()”, the php script which processeses the data basically hangs and doesn’t redirect to the alternative success page that I set in the cforms preferences. I’m trying to puzzle it out, but no luck so far.