>>174
<a href='<?php echo $HTTP_SERVER_VARS['PHP_SELF'] ."?" . SID?>'>
session.name:PHPSESSID

SIDとPHPSESSIDどちらかに統一してみれ。