First pass at PHP session autodetection

Issue #2441