add debugging to drupal session detection