Show fields on webform based on a value in the session
try somewhere in your webform-form-[NID].tpl.php

hide($form['submitted']['your-field-name']);
if($_SESSION['your_value'] == 'what it should be') {
   show($form['submitted']['your-field-name']);
}