I don't know the mechanism used by all forums, but the ones that I have seen store the last datetime of the search execution for the user within a session variable. So when trying to start another search it does a quick comparison. This doesn't need to then ask the DB server anything.