I'm trying to do something similar, except that I do actually want to destroy the session. I find that if I call session_destroy(), it doesn't kill the variable within the session. If you go to another page that re-starts the session, it retains the initial value that's within the session.
I'm getting around it by setting the variable to NULL in the 'Logout' page, but I would appreciate any better suggestions...