NSA - Looks like you don't have the &WriteUserSession call in Ultimate.cgi so the variables aren't being set. online.cgi works because it does make that call.
muted girl - just a guess... do you have the &WriteUserSession calls in BOTH places in Ultimate.cgi? That could explain why it doesn't work on the first call.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.