title: What is the correct way to bootstrap Drupal with Kohana 3?
body: <p>I am trying to implement single sign on between an existing Drupal site a Kohana 3 based webapp. Ideally I would like to load Drupal's session information into $GLOBALS using the bootstap:</p>
  
  <pre><code>require_once('../includes/bootstrap.inc');
  drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);
  </code></pre>
  
  <p>A post on the Kohana forum suggested that this should be placed in Kohana's index.php, but didn't say where. I've tried right at the start, and just before Kohana's own bootstrap, but both result in a White Screen of Death. </p>
  
  <p>Changing the bootstrap level to DRUPAL_BOOTSTRAP_CONFIGURATION works, but the session data isn't loaded. Any bootstrap level above DRUPAL_BOOTSTRAP_ACCESS results in a WSOD.</p>
  
  <p>If anyone has any ideas I'd really appreciate it!</p>