i tried initializing a $_SESSION variable in an observer class like this...

class hazMatProduct extends base {
var $_SESSION['hm-agreement'] = false;

but it throws an error. why does that create an error?,

the error log doesn't pick it up and record.

big thanks,