This looks like it's your banner ad script. UBB.threads uses a couple of cookies when you login. Cookie specifications state that you can only have a maximum of 20 cookies on your computer from a single domain.
Every time a new page is loaded on your site, your banner ad software sets a new cookie. Once the 20 cookie limit has been reached, the oldest cookies get removed from the users computer. Eventually this removes the cookies that UBB.threads uses to track that you're logged in, and voila, you're logged out.