add php parsing for sessions