It could be your cookiepath setting in the config file. You might want to check this and make sure that it if it isn't empty then it is an absolute path like "/".
Also, if you need to change this you'll probably want to close your browser and manually delete your cookies before trying to login again.
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.