Update session.php

Updated check for both plugins being published