If you have register_globals = off with patch #2097, the beanstream module won't work. This is because the var $osCsid is expected to be retrieved from register_globals.

To go over this you have to set a value for $oscSid in bean_webobject.php just after require(DIR_WS_INCLUDES . 'application_top.php');

add
$osCsid = tep_session_id();

More...