Skip to content
PHP Logo

How can one disable the functionality causing the warning about session side-effects in PHP?

To disable the warning about session side-effects in PHP, you can modify the session.use_strict_mode directive in your php.ini file to disable strict mode for session handling.

php
// Disable strict mode for session handling
ini_set('session.use_strict_mode', 0);