PHP/MySQL Sessions not getting inserted

For some reason whenever I try to insert the username/email into the database, the username/email isn’t registered but the rest of the data is. I have made sure in EVERY single place I have a session_start() and an exit(). But upon trying to add a topic my code doesn’t get the session at all. It says, “Success! Added your topic to the forum .” My username is COMPLETELY blank. I don’t know what I’m doing wrong and it is annoying me to death cause I’m spending half an hour trying to debug and fix it. My username appears everywhere else EXCEPT when adding the topic. I get no errors whatsoever and the only thing that isn’t submitted is the email/username which confuses me.
Code: https://sourceb.in/2c7e0c19da

Sorry for late reply got it fixed :slight_smile: