Trust me that much I know.
But the file producing the error is a global file. Let’s call it notauthorized.php. A total of 6 files call on notauthorized.php to pull a global functions file for database operations. 4 cron jobs and the login.php and register.php pages.
Because login.php and register.php call on this file, it needs a session. So every time the notauthorized.php file is used it creates a session. It just so happens that the 4 cron jobs also use notauthorized.php to use the database features.
So the option is there to create a new file just for the cron jobs to access the database features, but it would still leave login.php and register.php calling on the notauthorized.php file creating the errors. Hence the session being used.