Added constraints for deleting sessions.