fix headers already sent warnings when using session_start()

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>