You may need to think about the order in which you do things.
session_start() will read the session data and create new variables from the session data. So if there already was a $ItemID in the session data, then the one you created ($ItemID=$HH) will be overwritten.
Session_start() is usually the first thing that happens on a page that uses sessions.