session user class for php extension