PHP custom session handler changes in PHP7

If you are using a custom session handler probably you noticed this kind of issue when you upgradedĀ to PHP7, else keep this information in mind since in the PHP documentation it is not really clear at the moment of writing this article.

Since PHP 5 this changes affected custom session handler implementation:

  • The read method should return an empty string if session was not started yet
  • The write method should return either true or false