Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Session Metadata and SessionArrayStorage requestaccesstime fixes. #3639
2.1 changed slightly in how the session manager retrieved results from the storage; unfortunately this caused the meta data to be blown away. Unfortunately in 2.0.x it was not clear that the type cast was working around the toArray method. Now toArray has a $metaData = false parameter to ensure that we can save the metadata when writing the session.
Additionally the Storage containers were never meant to directly modify $_SESSION; however, to fix issues with storage containers from ArrayObject this was made. Unfortunately when it is initialized it attempts to set the request access time; this has been changed to do it on session start by utilizing the fromArray method.