You probably just have to add:
@session_start();
before your code that resets the session variables. The webassist code closes the session once it is done, so you would have to re-start it in order to overwrite any values.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.