Check for active session on admin functions