Support Drupal's $cookie_domain

Session name calculation is not correct if Drupal use custom cookie domain.