Published
- 1 min read
Start Session when headers already sent
The solution for this is noted below
Start Session when headers already sent
Solution
if( empty(session_id()) && !headers_sent()){
session_start();
}
Try other methods by searching on the site. That is if this doesn’t work