Welcome Guest, Not a member yet? Register   Sign In
CI 3.1.3 upgrade from 3.1.2 does not allow database sessions to work (PHP 5.5)
#4

(01-11-2017, 03:06 AM)Narf Wrote: Try with this: https://github.com/bcit-ci/CodeIgniter/c...fc4b1d4db9

Works for me. Hopefully it works for everyone.

Side note: I read in the PHP docs for sess_regenerate_id that the practice of destroying old session data immediately should not be done.


Quote:You should not destroy old session data immediately, but should use destroy time-stamp and control access to old session ID. Otherwise, concurrent access to page may result in inconsistent state, or you may have lost session, or it may cause client(browser) side race condition and may create many session ID needlessly. Immediate session data deletion disables session hijack attack detection and prevention also.


I'm not sure if this points to what was going on with this PHP 5.5 box, but this idea of having a destroy time-stamp is interesting. Maybe a future CI 3.x enhancement?
Reply


Messages In This Thread
RE: CI 3.1.3 upgrade from 3.1.2 does not allow database sessions to work (PHP 5.5) - by skunkbad - 01-11-2017, 08:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB