move function prototype from util.h to session.h