- replaced all 'header("Location: foo")'s by a call to 'drupal_goto()' which will append the session ID to the uri 'foo' when PHP is compiled with '--enable-transe-sid'.