Quote from: garryn at Dec 21, 2006, 03:31 PM
Hi Jason, commenting those lines didn’t help matters but I have narrowed the problem down to these lines in the same function:
session_set_save_handler(
array ($sh, 'open'),
array ($sh, 'close'),
array ($sh, 'read'),
array ($sh, 'write'),
array ($sh, 'destroy'),
array ($sh, 'gc')
);
Commenting those lines out and everything loads fine. I’ll see if I can dig a bit further ...
Quote from: sottwell at Dec 21, 2006, 04:00 PM
The core/cache/config.cache.php files are different between the local installation (new installation) and the updated one... the updated version has nothing in the file about session values, while the new version has several fields with session data. At what point are these written? Does the new installation process write that data?
Quote from: sottwell at Dec 21, 2006, 04:08 PM
Apparently not; I added the lines to the upgrade and it worked fine. Then I cleared the cache and it threw me right out to the login page again. So for some reason it’s not picking up the session name.
AHA! It all makes sense now. That is indeed the problem. Looks like upgrades aren’t inserting the new values for some reason, despite me specifically addressing that problem about a week ago, or so I thought. Hmmm...I’ll take a look as soon as possible and get a fix out to ya. In the meantime, you can specifically insert the new values using the following SQL...
INSERT IGNORE INTO `modx_system_settings` (`setting_name`, `setting_value`) VALUES
('session_handler_class', 'modSessionHandler'),
('session_cookie_path', '/'),
('session_cookie_lifetime', '604800'),
('session_cookie_domain', 'localhost'),
('session_cookie_secure', '0'),
('session_name', 'modxcmssession'),
('cache_disabled', '0'),
('cache_resource', '1'),
('cache_resource_expires', '0'),
('cache_db', '0'),
('cache_db_expires', '0'),
('cache_json', '0'),
('cache_json_expires', '0');
I also need to finish implementing the manager interface for these new settings (add lang entries, etc.), as well as for managing context specific configuration settings to override any core settings.