adjust CosmessSession for $params['type']