HSTSEnforcer.setSessionPolicy

void setSessionPolicy(string domain, bool includeSubdomains)

Sets a session policy for domain.

A session policy is a policy that is permanent to the lifetime of hsts_enforcer's classSession and doesn't expire.

Parameters

domainpolicy domain or hostname
includeSubdomainstrue if the policy applies on sub domains