most of our extensions write PHP 4 and 5 compatibel code.
In the case of session variables, there are a number of php bugs that can be encountered.
PHP can often forget about the browsing session. Adding:
<?php if(!session_id()) session_start(); ?>
will for ce php to look for the session. This can happen in both php 4 and php 5