Role-based access control (RBAC) model is receiving increasing attention as a generalized approach to access control. Temporal RBAC model is an extension on temporal constraint of the RBAC model. The problems of security status recovery with session priority were mainly explained, and the algorithms of choosing the reasonable terminating session set which will restore the system were proposed. The algorithm solves the conflict, to some extent, between efficiency and security caused by which terminating session set is too big. The control ability of this system is improved and the access needs of users with different users are satisfied.