Some forum cookies timeout. SMF in particular has a very short life cookie unless modified to allow for always logged in at login. Unfortunately this is usually fixed with a forum mod specific to the forum being used and the forum communities are usually more apt to know how to make the modification.
If you don't think this is teh issue or if it is a new issue please elaborate and tell us what forum AJAX Chat is integrated with.