This ticket is a copy of a ticket for the legal module (which has the same problem) #834962: Fix session handling issue

---

A side effect of calling session_destroy() in PHP 5.2.X or below is that all the user-defined session save handlers set for the session are also destroyed.

This causes the following error:

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: user (path: /var/lib/php5) in /var/WWW/drupal/includes/bootstrap.inc on line 1676

This is especially problematic under Pressflow with the way they handle cookies.

The attached patch re-initializes the session save handlers after calling session_destroy().

Further reading : https://bugs.edge.launchpad.net/pressflow/+bug/513117 http://bugs.php.net/bug.php?id=32330

CommentFileSizeAuthor
fb_user-session.patch503 bytesa_c_m

Comments

Dave Cohen’s picture

Status: Active » Fixed

Thanks. Checked in. Will be in next release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

BManuel’s picture

Version: 6.x-3.0-rc1 » 6.x-3.x-dev
Status: Closed (fixed) » Active

I still get this error when I try to logout from my website, while still login at facebook.
Thanks