changed obsolete way of registering session variables