Reference

Guide

$session->prepareForWriting()

Puts the session into write mode by acquiring a lock and reloading the data Used internally

$session->prepareForWriting(): void