replaced variable_set/get with session_variable/get, plus temp code to remove vars from table