11
I fixed the problem by moving the set cookie code to the top of the file. I thought that perhaps somewhere in the view_topic page some data could have been sent before the cookie header preventing the cookie header from working. I knew the cookie setting worked in config.php as the cookies for NewBBLastVisitTemp was being set properly.
So I moved the cookie code to the top of the page after header.php was included and after topic_id was set and now it works fine. I do not know why the server would make the old code stop working but this change did the trick.
Shawn