PHP Programming Error
Asked By
0 points
N/A
Posted on - 06/22/2019
![qa-featured](https://www.techyv.com/sites/default/users/superadmin/qa-featured-300x270.png)
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?
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)
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.