PHP Programming Error
Asked By
0 points
N/A
Posted on - 06/22/2019

During my PHP programming, an analysis error occurred. The error says A session has already started, with session_start () in ignored How can I fix this error?

During my PHP programming, an analysis error occurred. The error says A session has already started, with session_start () in ignored How can I fix this error?
Always add session_start () with a condition that checks if $ _SESSION exists, this will take the charge and whenever you will try to start a session it will go on a check whether the session already exists or not. This will work as one of the best solutions and precautions to avoid this error.