NetOffice Fix

This is a follow-up to last month’s post about NetOffice. I’ve gotten several emails from people wanting to know specifically what I changed to fix the session error I was running into.

First of all, these fixes apply to version 2.5.3 of NetOffice only. Other versions, you’re on your own.

In the file includes/library.php:

Comment out line 23: ini_set('session.save_handler', 'user');
Comment out lines 61-63: session_set_save_handler() stuff
Comment out line 1088, in _sess_mysql_read() function: _sess_mysql_destroy($session_id);
…and add this line instead: session_destroy();

This all kills the custom session handling, instead letting PHP use the default (temp files).

In the file general/login.php:

Comment out line 37: _sess_mysql_destroy($session_id);
…and add this line instead: session_destroy();

In the file projects_site/index.php:

Comment out line 22: _sess_mysql_destroy($session_id);
…and add this line instead: session_destroy();

After that, you should be able to get things working.