Bug 25065: use active session instead of active