A Simple WorkAround For regenerate session_id Errors When Testing Zend Controllers
created: Jan. 20, 2017, 9:46 p.m.
I have gotten this error many many times whenever I tested a controller in Zend Framework 2 using the AbstractHttpsControllerTestCase class:
session_regenerate_id(): Cannot regenerate session id - headers already sent
So how did I fix it? Well after hours, maybe weeks, of searching I simply just did this.
And it finally worked!
Thanks almostbalanced blog for this!