by ckwu » Wed Jul 07, 2010 7:49 pm
Hi, folks,
I had encountered a login session problem that took me hours to debug. Hopefully, my experience helps some other guys using OCS.
I used to run an (OCS 2.1.1 + CK-ERP) demo and an (OJS 2.2.2 + CK-ERP) demo with the same shared webhosting agent. Lately, I was trying to upgrade the OCS demo to OCS 2.3.2 . After successfully deleting the old OCS demo and re-installing a new OCS 2.3.2, I am able to login with the initial administrator account. However, after one or two pages, the screen jump back to the Login screen asking me to supply username/password.
After this, I re-install OCS 2.3.2 on my own desktop machine, everything went fine. I logged into the OJS 2.2.2 that was hosted on the same remote machine that hosted the broken OCS 2.3.2 installation, everything went well too. So, presumably, my local machine's and the remote machine's webserver environment were not to be blamed.
Finally, I traced the whole thing to the session_check_ip setting within config.inc.php . Apparently, with the current stable releases, OCS 2.1.x and OJS 2.2.x, the default setting was, session_check_ip = Off ; but with the development version, OCS 2.3.x, the default setting was, session_check_ip = On.
I set session_check_ip = Off at the broken OCS 2.3.2, everything went OK again.
Best Regards,
CK