HI
you could try making $val into a proper property of that clsss and registering it before setting it's value.
class name {
session_register("va1");
var $va1;
session_register("va1");
$var= "bla";
}
although saying that it's highly unlikely you need to take this approach anyway it's not really what a class is for.
Find a way to use your class for properties and methods and register your session vars in the program that uses the class.
Or pass the object in a session.
Nick