Please try below steps:
selected "Delete Browser history on exit."
Intranet Options > Security tab > Local Intranet
In sites, selected "Automatic detect Intranet Settings."
Trusted Sites > Added pam sample portal URL as trusted sites.
Make sure "Automatic Logon only in Intranet zone" is selected in custom level for Local Intranet and Trusted site.