I was recently hired to fix a website that is using an outdated O'Reilly error reporting script. Customers of the client have complained about session data loss. Inside this error reporting script the sessions are terminated before the error is reported. My question being, does this session termination need to be there or can it be done away with? The errors tracked are MySQL queries.