Welcome Guest, Not a member yet? Register   Sign In
[split] Broken database sessions (CodeIgniter 3.1.3 Released)
#2

(This post was last modified: 01-10-2017, 09:50 AM by skunkbad.)

(01-10-2017, 03:10 AM)Narf Wrote:
(01-09-2017, 09:00 PM)skunkbad Wrote: Upgrade from 3.1.2 to 3.1.3 now has broken database sessions for me. Getting this in the logs:

ERROR - 2017-01-09 19:55:20 --> Severity: Warning --> Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (ci_sessions) Unknown 0

Any ideas? This was fully functional until the upgrade. If I switch to file based sessions it starts working again.

There are 2 bugfixes in 3.1.3 against the Session library, both targeting the database driver:

https://github.com/bcit-ci/CodeIgniter/issues/4916
https://github.com/bcit-ci/CodeIgniter/issues/4923

However, I don't see how either of them could cause another issue.


For me, commenting out the following code in the session database driver allows me to log in again:

PHP Code:
if ($this->_lock === FALSE)
{
 
 return $this->_fail();
}
// Was the ID regenerated?
else 

What happens during login is pretty standard; the session ID is regenerated after a successful login.

I made a new forum post last night for this topic: https://forum.codeigniter.com/thread-67059.html

Any help is appreciated.
Reply


Messages In This Thread
RE: CodeIgniter 3.1.3 Released - by skunkbad - 01-10-2017, 09:48 AM
RE: CodeIgniter 3.1.3 Released - by ivantcholakov - 01-10-2017, 10:14 AM
RE: CodeIgniter 3.1.3 Released - by skunkbad - 01-10-2017, 10:50 AM
RE: CodeIgniter 3.1.3 Released - by ivantcholakov - 01-10-2017, 11:28 AM
RE: CodeIgniter 3.1.3 Released - by skunkbad - 01-10-2017, 11:37 AM
RE: CodeIgniter 3.1.3 Released - by skunkbad - 01-10-2017, 08:51 PM
RE: CodeIgniter 3.1.3 Released - by ivantcholakov - 01-11-2017, 01:16 AM
RE: CodeIgniter 3.1.3 Released - by skunkbad - 01-11-2017, 01:26 AM
RE: CodeIgniter 3.1.3 Released - by xaiborweb - 12-12-2018, 04:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB