Updated set_userstate.php to reconfigure session-variables