first time posting here so be gentle 🙂
On my web pages I have the usual session start and there is quite a few pages.
Is there any reason why I can’t just put all my session starting code in a separate PHP file and then first up call it as an include?
Is this doable? Is it considered safe?
Sure — just remember that your PHP file cannot output any text to the client prior to
session_start(), since session_start() typically outputs an HTTP header.