drupal

Drupal login problem with 6.17 and php 5.2

So I got home and tried login in again. Guess what the login was broke again. So was talking to Scott and he suggested to reverse all the changes. I went one step up and just untared a new version of drupal 6.17 over my installation and magically it worked again. Interesting... Why wasn't it working before? No clue... But the most important thing is it works now :)

Drupal 6.17 Login problems with PHP 5.2

So I upgraded to drupal 6.17 a week or so ago and guess what my hosting company decides to upgrade their PHP to 5.2. Ofcourse as you would know it my drupal instance decides to not work any more. I would try to login as an admin and get prompted right back. I searched for quite a while and finally found a combination that fixed it. I believe the following will fix:

Drupal 6.17
Php: 5.2.13

Add following at the very bottom of index.php:

drupal_page_footer();
$GLOBALS['tempUser'] = $user;
session_write_close();

Also following dirty patch for includes/session.inc