I\'m trying to understand sessions and how some of the functions to end them work. I\'ve gone to different sites/and even here on SO and, well essentially, nothing is workin
You are missing a session_start() at the top of your logout page. It's trying to modify a session that doesn't exist!
session_start()