Update session.php

Added check for user being guest. If so, then the plugin must not do anything.