0

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:

require_once('../includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);

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.

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.

If anyone has any ideas I'd really appreciate it!

4

1 回答 1

0

在尝试引导它之前,您可能需要对 Drupal 目录执行 chdir()。
您可以在这里看到一个很可能也适用于 Kohana 的很好的解释

于 2010-04-25T13:11:24.483 回答