psew-etp: fixed #462 by adding another IF, also fixed the way the triples are stored (now using clientsession)