'Twas brillig, and Anders Gunnarsson at 02/10/09 19:00 did gyre and gimble:
I've got a site with ZF as base,
but have Drupal running in a sub folder.
example.com/ (ZF)
example.com/drupal-site/ (Drupal)

My problem is that I get different Sessions IDs in drupal pages
then I do in ZF pages.

I don't understand why, I thought in was php and apache itself that handled the session.

Drupals session handling is pretty hacked up, registering various handling functions etc. There is nothing wrong with that per-se but it makes it a pain for integration :(

In includes/bootstrac.inc, under the case fro DRUPAL_BOOTSTRAP_SESSION try commenting out the session_start() call and instead calling your own Zend_Session start instead and see if that fixes it up for you (does for me, but then I use drupal as a main entry point and run Zend Applications as a bridge component - that way there is only one site template - the drupal one - so styling is simpler.

Col

--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

Reply via email to