<input type="text" name="cosa" value="$_SESSION['var']">
<input type="text" name="cosa" value="<?php echo $_SESSION['var']; ?>" />