javascript - Smart Card relogin failed with message "validation of viewstate MAC failed" After executed "ClearAuthenticationCache" -


in asp.net web application, use smart card login. after logged out, want make iis prompt pin if login again. following command run -

document.execcommand('clearauthenticationcache'); 

it prompt selection of certificate. after pick correct certificate, "validation of viewstate mac failed" error thrown.

machine key has been set in web.config. test in single server.

can fixed?

is there way force relogin without executing above command?

the error log -

<error    application="/lm/w3svc/2/root"    host="mmm809-pb8gmtc"    type="system.web.ui.viewstateexception"    message="invalid viewstate. &#xd;&#xa;&#x9;client ip: 127.0.0.1&#xd;&#xa;&#x9;port: 64307&#xd;&#xa;&#x9;referer: https://localhost:48044/account/login.aspx?returnurl=%2f&#xd;&#xa;&#x9;path: /account/login.aspx&#xd;&#xa;&#x9;user-agent: mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko&#xd;&#xa;&#x9;viewstate: /12345678905ntiymjmwnq9kfgjmd2qwbaibd2qwagikd2qwagibd2qwamypdxyehgruzxh0bsfszwxlyxnlidewljgumtogtg9jywwgrgv2zwxvcg1lbnqeb1zpc2libgvnzgqcaw9kfgqcbq88kwanaqapfgiec18hrgf0yujvdw5kz2rkaggpzbygzg8pfgifaavprw50zxigew91cib1c2vybmftzswgcgfzc3dvcmqsig9yigluc2vydcb5b3vyifbjvibdyxjkigfuzcbjagvjayb0agugym94igjlbg93lmrkagmpdxychwfnzgqcba8pfgifawdkfgqcaq8pfgifaavyugxlyxnligluc2vydcb5b3vyifbjvibdyxjkigludg8gew91cib3b3jrc3rhdglvbidzignhcmqgcmvhzgvylcbhbmqgy2xpy2sgdghlicdmb2dpbibxaxroifbjvibdyxjkjybidxr0b24gymvsb3cuzgqcaw8pfgqfagufawhkzbgbbr5fx0nvbnryb2xzumvxdwlyzvbvc3rcywnrs2v5x18wawuey3rsmdaktwfpbknvbnrlbnqkq2hly2tcb3hqt0fnbrnjdgwwmcrjq2fuy2vsjgn0bdaxbrnjdgwwmcrjq2fuy2vsjgn0bdazls/fm9a6vvp18rwsd2ic7rg/xts="    detail="system.web.httpexception (0x80004005): validation of viewstate mac failed. if application hosted web farm or cluster, ensure &lt;machinekey&gt; configuration specifies same validationkey , validation algorithm. autogenerate cannot used in cluster.&#xd;&#xa;&#xd;&#xa;see http://go.microsoft.com/fwlink/?linkid=314055 more information. ---&gt; system.web.ui.viewstateexception: invalid viewstate. &#xd;&#xa;&#x9;client ip: 127.0.0.1&#xd;&#xa;&#x9;port: 64307&#xd;&#xa;&#x9;referer: https://localhost:48044/account/login.aspx?returnurl=%2f&#xd;&#xa;&#x9;path: /account/login.aspx&#xd;&#xa;&#x9;user-agent: mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko&#xd;&#xa;&#x9;viewstate: /12345678905ntiymjmwnq9kfgjmd2qwbaibd2qwagikd2qwagibd2qwamypdxyehgruzxh0bsfszwxlyxnlidewljgumtogtg9jywwgrgv2zwxvcg1lbnqeb1zpc2libgvnzgqcaw9kfgqcbq88kwanaqapfgiec18hrgf0yujvdw5kz2rkaggpzbygzg8pfgifaavprw50zxigew91cib1c2vybmftzswgcgfzc3dvcmqsig9yigluc2vydcb5b3vyifbjvibdyxjkigfuzcbjagvjayb0agugym94igjlbg93lmrkagmpdxychwfnzgqcba8pfgifawdkfgqcaq8pfgifaavyugxlyxnligluc2vydcb5b3vyifbjvibdyxjkigludg8gew91cib3b3jrc3rhdglvbidzignhcmqgcmvhzgvylcbhbmqgy2xpy2sgdghlicdmb2dpbibxaxroifbjvibdyxjkjybidxr0b24gymvsb3cuzgqcaw8pfgqfagufawhkzbgbbr5fx0nvbnryb2xzumvxdwlyzvbvc3rcywnrs2v5x18wawuey3rsmdaktwfpbknvbnrlbnqkq2hly2tcb3hqt0fnbrnjdgwwmcrjq2fuy2vsjgn0bdaxbrnjdgwwmcrjq2fuy2vsjgn0bdazls/fm9a6vvp18rwsd2ic7rg/xts=&#xd;&#xa;   @ system.web.ui.viewstateexception.throwerror(exception inner, string persistedstate, string errorpagemessage, boolean macvalidationerror)&#xd;&#xa;   @ system.web.ui.objectstateformatter.deserialize(string inputstring, purpose purpose)&#xd;&#xa;   @ system.web.ui.util.deserializewithassert(istateformatter2 formatter, string serializedstate, purpose purpose)&#xd;&#xa;   @ system.web.ui.hiddenfieldpagestatepersister.load()&#xd;&#xa;   @ system.web.ui.page.loadpagestatefrompersistencemedium()&#xd;&#xa;   @ system.web.ui.page.loadallstate()&#xd;&#xa;   @ system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint)&#xd;&#xa;   @ system.web.ui.page.processrequest(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint)&#xd;&#xa;   @ system.web.ui.page.processrequest()&#xd;&#xa;   @ system.web.ui.page.processrequest(httpcontext context)&#xd;&#xa;   @ asp.account_login_aspx.processrequest(httpcontext context) in c:\windows\microsoft.net\framework64\v4.0.30319\temporary asp.net files\root\277b2a97\3a0c0b22\app_web_tivyflc5.0.cs:line 0&#xd;&#xa;   @ system.web.httpapplication.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()&#xd;&#xa;   @ system.web.httpapplication.executestep(iexecutionstep step, boolean&amp; completedsynchronously)"    time="2017-08-14t21:15:21.9999720z"    statuscode="500"    webhosthtmlmessage="&lt;!doctype html&gt;&#xd;&#xa;&lt;html&gt;&#xd;&#xa;    &lt;head&gt;&#xd;&#xa;        &lt;title&gt;validation of viewstate mac failed. if application hosted web farm or cluster, ensure &amp;lt;machinekey&amp;gt; configuration specifies same validationkey , validation algorithm. autogenerate cannot used in cluster.&lt;br&gt;&lt;br&gt;see http://go.microsoft.com/fwlink/?linkid=314055 more information.&lt;/title&gt;&#xd;&#xa;        &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot; /&gt;&#xd;&#xa;        &lt;style&gt;&#xd;&#xa;         body {font-family:&quot;verdana&quot;;font-weight:normal;font-size: .7em;color:black;} &#xd;&#xa;         p {font-family:&quot;verdana&quot;;font-weight:normal;color:black;margin-top: -5px}&#xd;&#xa;         b {font-family:&quot;verdana&quot;;font-weight:bold;color:black;margin-top: -5px}&#xd;&#xa;         h1 { font-family:&quot;verdana&quot;;font-weight:normal;font-size:18pt;color:red }&#xd;&#xa;         h2 { font-family:&quot;verdana&quot;;font-weight:normal;font-size:14pt;color:maroon }&#xd;&#xa;         pre {font-family:&quot;consolas&quot;,&quot;lucida console&quot;,monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}&#xd;&#xa;         .marker {font-weight: bold; color: black;text-decoration: none;}&#xd;&#xa;         .version {color: gray;}&#xd;&#xa;         .error {margin-bottom: 10px;}&#xd;&#xa;         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }&#xd;&#xa;         @media screen , (max-width: 639px) {&#xd;&#xa;          pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }&#xd;&#xa;         }&#xd;&#xa;         @media screen , (max-width: 479px) {&#xd;&#xa;          pre { width: 280px; }&#xd;&#xa;         }&#xd;&#xa;        &lt;/style&gt;&#xd;&#xa;    &lt;/head&gt;&#xd;&#xa;&#xd;&#xa;    &lt;body bgcolor=&quot;white&quot;&gt;&#xd;&#xa;&#xd;&#xa;            &lt;span&gt;&lt;h1&gt;server error in '/' application.&lt;hr width=100% size=1 color=silver&gt;&lt;/h1&gt;&#xd;&#xa;&#xd;&#xa;            &lt;h2&gt; &lt;i&gt;validation of viewstate mac failed. if application hosted web farm or cluster, ensure &amp;lt;machinekey&amp;gt; configuration specifies same validationkey , validation algorithm. autogenerate cannot used in cluster.&lt;br&gt;&lt;br&gt;see http://go.microsoft.com/fwlink/?linkid=314055 more information.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;&#xd;&#xa;&#xd;&#xa;            &lt;font face=&quot;arial, helvetica, geneva, sunsans-regular, sans-serif &quot;&gt;&#xd;&#xa;&#xd;&#xa;            &lt;b&gt; description: &lt;/b&gt;an unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.&#xd;&#xa;&#xd;&#xa;            &lt;br&gt;&lt;br&gt;&#xd;&#xa;&#xd;&#xa;            &lt;b&gt; exception details: &lt;/b&gt;system.web.httpexception: validation of viewstate mac failed. if application hosted web farm or cluster, ensure &amp;lt;machinekey&amp;gt; configuration specifies same validationkey , validation algorithm. autogenerate cannot used in cluster.&lt;br&gt;&lt;br&gt;see http://go.microsoft.com/fwlink/?linkid=314055 more information.&lt;br&gt;&lt;br&gt;&#xd;&#xa;&#xd;&#xa;            &lt;b&gt;source error:&lt;/b&gt; &lt;br&gt;&lt;br&gt;&#xd;&#xa;&#xd;&#xa;            &lt;table width=100% bgcolor=&quot;#ffffcc&quot;&gt;&#xd;&#xa;               &lt;tr&gt;&#xd;&#xa;                  &lt;td&gt;&#xd;&#xa;                      &lt;code&gt;&lt;pre&gt;&#xd;&#xa;&#xd;&#xa;[no relevant source lines]&lt;/pre&gt;&lt;/code&gt;&#xd;&#xa;&#xd;&#xa;                  &lt;/td&gt;&#xd;&#xa;               &lt;/tr&gt;&#xd;&#xa;            &lt;/table&gt;&#xd;&#xa;&#xd;&#xa;            &lt;br&gt;&#xd;&#xa;&#xd;&#xa;            &lt;b&gt; source file: &lt;/b&gt; c:\windows\microsoft.net\framework64\v4.0.30319\temporary asp.net files\root\277b2a97\3a0c0b22\app_web_tivyflc5.0.cs&lt;b&gt; &amp;nbsp;&amp;nbsp; line: &lt;/b&gt; 0&#xd;&#xa;            &lt;br&gt;&lt;br&gt;&#xd;&#xa;&#xd;&#xa;            &lt;b&gt;stack trace:&lt;/b&gt; &lt;br&gt;&lt;br&gt;&#xd;&#xa;&#xd;&#xa;            &lt;table width=100% bgcolor=&quot;#ffffcc&quot;&gt;&#xd;&#xa;               &lt;tr&gt;&#xd;&#xa;                  &lt;td&gt;&#xd;&#xa;                      &lt;code&gt;&lt;pre&gt;&#xd;&#xa;&#xd;&#xa;[viewstateexception: invalid viewstate. &#xd;&#xa;&#x9;client ip: 127.0.0.1&#xd;&#xa;&#x9;port: 64307&#xd;&#xa;&#x9;referer: https://localhost:48044/account/login.aspx?returnurl=%2f&#xd;&#xa;&#x9;path: /account/login.aspx&#xd;&#xa;&#x9;user-agent: mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko&#xd;&#xa;&#x9;viewstate: /12345678905ntiymjmwnq9kfgjmd2qwbaibd2qwagikd2qwagibd2qwamypdxyehgruzxh0bsfszwxlyxnlidewljgumtogtg9jywwgrgv2zwxvcg1lbnqeb1zpc2libgvnzgqcaw9kfgqcbq88kwanaqapfgiec18hrgf0yujvdw5kz2rkaggpzbygzg8pfgifaavprw50zxigew91cib1c2vybmftzswgcgfzc3dvcmqsig9yigluc2vydcb5b3vyifbjvibdyxjkigfuzcbjagvjayb0agugym94igjlbg93lmrkagmpdxychwfnzgqcba8pfgifawdkfgqcaq8pfgifaavyugxlyxnligluc2vydcb5b3vyifbjvibdyxjkigludg8gew91cib3b3jrc3rhdglvbidzignhcmqgcmvhzgvylcbhbmqgy2xpy2sgdghlicdmb2dpbibxaxroifbjvibdyxjkjybidxr0b24gymvsb3cuzgqcaw8pfgqfagufawhkzbgbbr5fx0nvbnryb2xzumvxdwlyzvbvc3rcywnrs2v5x18wawuey3rsmdaktwfpbknvbnrlbnqkq2hly2tcb3hqt0fnbrnjdgwwmcrjq2fuy2vsjgn0bdaxbrnjdgwwmcrjq2fuy2vsjgn0bdazls/fm9a6vvp18rwsd2ic7rg/xts=]&#xd;&#xa;&#xd;&#xa;[httpexception (0x80004005): validation of viewstate mac failed. if application hosted web farm or cluster, ensure &amp;lt;machinekey&amp;gt; configuration specifies same validationkey , validation algorithm. autogenerate cannot used in cluster.&#xd;&#xa;&#xd;&#xa;see http://go.microsoft.com/fwlink/?linkid=314055 more information.]&#xd;&#xa;   system.web.ui.viewstateexception.throwerror(exception inner, string persistedstate, string errorpagemessage, boolean macvalidationerror) +153&#xd;&#xa;   system.web.ui.objectstateformatter.deserialize(string inputstring, purpose purpose) +912&#xd;&#xa;   system.web.ui.util.deserializewithassert(istateformatter2 formatter, string serializedstate, purpose purpose) +61&#xd;&#xa;   system.web.ui.hiddenfieldpagestatepersister.load() +309&#xd;&#xa;   system.web.ui.page.loadpagestatefrompersistencemedium() +367&#xd;&#xa;   system.web.ui.page.loadallstate() +46&#xd;&#xa;   system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +9527&#xd;&#xa;   system.web.ui.page.processrequest(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +355&#xd;&#xa;   system.web.ui.page.processrequest() +75&#xd;&#xa;   system.web.ui.page.processrequest(httpcontext context) +70&#xd;&#xa;   asp.account_login_aspx.processrequest(httpcontext context) in c:\windows\microsoft.net\framework64\v4.0.30319\temporary asp.net files\root\277b2a97\3a0c0b22\app_web_tivyflc5.0.cs:0&#xd;&#xa;   system.web.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute() +798&#xd;&#xa;   system.web.httpapplication.executestep(iexecutionstep step, boolean&amp;amp; completedsynchronously) +91&#xd;&#xa;&lt;/pre&gt;&lt;/code&gt;&#xd;&#xa;&#xd;&#xa;                  &lt;/td&gt;&#xd;&#xa;               &lt;/tr&gt;&#xd;&#xa;            &lt;/table&gt;&#xd;&#xa;&#xd;&#xa;            &lt;br&gt;&#xd;&#xa;&#xd;&#xa;    &lt;/body&gt;&#xd;&#xa;&lt;/html&gt;&#xd;&#xa;">    <servervariables>      <item        name="all_http">        <value          string="http_cache_control:no-cache&#xd;&#xa;http_connection:keep-alive&#xd;&#xa;http_content_length:1369&#xd;&#xa;http_content_type:application/x-www-form-urlencoded&#xd;&#xa;http_accept:text/html, application/xhtml+xml, */*&#xd;&#xa;http_accept_encoding:gzip, deflate&#xd;&#xa;http_accept_language:en-us&#xd;&#xa;http_host:localhost:48044&#xd;&#xa;http_referer:https://localhost:48044/account/login.aspx?returnurl=%2f&#xd;&#xa;http_user_agent:mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko&#xd;&#xa;" />      </item>      <item        name="all_raw">        <value          string="cache-control: no-cache&#xd;&#xa;connection: keep-alive&#xd;&#xa;content-length: 1369&#xd;&#xa;content-type: application/x-www-form-urlencoded&#xd;&#xa;accept: text/html, application/xhtml+xml, */*&#xd;&#xa;accept-encoding: gzip, deflate&#xd;&#xa;accept-language: en-us&#xd;&#xa;host: localhost:48044&#xd;&#xa;referer: https://localhost:48044/account/login.aspx?returnurl=%2f&#xd;&#xa;user-agent: mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko&#xd;&#xa;" />      </item>      <item        name="appl_md_path">        <value          string="/lm/w3svc/2/root" />      </item>      <item        name="appl_physical_path">        <value          string="c:\jjj\fff2v2\dev_mvc\prototype\fff.admin\fff2\" />      </item>      <item        name="auth_type">        <value          string="" />      </item>      <item        name="auth_user">        <value          string="" />      </item>      <item        name="auth_password">        <value          string="*****" />      </item>      <item        name="logon_user">        <value          string="" />      </item>      <item        name="remote_user">        <value          string="" />      </item>      <item        name="cert_cookie">        <value          string="a4b74eb1dcfd75b321ea17b5486687b91900001103c95854d42f7d0345d17c83" />      </item>      <item        name="cert_flags">        <value          string="1" />      </item>      <item        name="cert_issuer">        <value          string="c=us, o=entrust, ou=certification authorities, ou=entrust managed services ssp ca" />      </item>      <item        name="cert_keysize">        <value          string="256" />      </item>      <item        name="cert_secretkeysize">        <value          string="1024" />      </item>      <item        name="cert_serialnumber">        <value          string="49-4a-2a-2c" />      </item>      <item        name="cert_server_issuer">        <value          string="cn=localhost" />      </item>      <item        name="cert_server_subject">        <value          string="cn=localhost" />      </item>      <item        name="cert_subject">        <value          string="c=us, o=u.s. company, ou=dept of ee, ou=civ, cn=gggg uuu (affiliate) + oid.0.9.2342.19200300.100.1.1=15001003062231" />      </item>      <item        name="content_length">        <value          string="1369" />      </item>      <item        name="content_type">        <value          string="application/x-www-form-urlencoded" />      </item>      <item        name="gateway_interface">        <value          string="cgi/1.1" />      </item>      <item        name="https">        <value          string="on" />      </item>      <item        name="https_keysize">        <value          string="256" />      </item>      <item        name="https_secretkeysize">        <value          string="1024" />      </item>      <item        name="https_server_issuer">        <value          string="cn=localhost" />      </item>      <item        name="https_server_subject">        <value          string="cn=localhost" />      </item>      <item        name="instance_id">        <value          string="2" />      </item>      <item        name="instance_meta_path">        <value          string="/lm/w3svc/2" />      </item>      <item        name="local_addr">        <value          string="127.0.0.1" />      </item>      <item        name="path_info">        <value          string="/account/login.aspx" />      </item>      <item        name="path_translated">        <value          string="c:\jjj\fff2v2\dev_mvc\prototype\fff.admin\fff2\account\login.aspx" />      </item>      <item        name="query_string">        <value          string="returnurl=%2f" />      </item>      <item        name="remote_addr">        <value          string="127.0.0.1" />      </item>      <item        name="remote_host">        <value          string="127.0.0.1" />      </item>      <item        name="remote_port">        <value          string="64307" />      </item>      <item        name="request_method">        <value          string="post" />      </item>      <item        name="script_name">        <value          string="/account/login.aspx" />      </item>      <item        name="server_name">        <value          string="localhost" />      </item>      <item        name="server_port">        <value          string="48044" />      </item>      <item        name="server_port_secure">        <value          string="1" />      </item>      <item        name="server_protocol">        <value          string="http/1.1" />      </item>      <item        name="server_software">        <value          string="microsoft-iis/7.5" />      </item>      <item        name="url">        <value          string="/account/login.aspx" />      </item>      <item        name="http_cache_control">        <value          string="no-cache" />      </item>      <item        name="http_connection">        <value          string="keep-alive" />      </item>      <item        name="http_content_length">        <value          string="1369" />      </item>      <item        name="http_content_type">        <value          string="application/x-www-form-urlencoded" />      </item>      <item        name="http_accept">        <value          string="text/html, application/xhtml+xml, */*" />      </item>      <item        name="http_accept_encoding">        <value          string="gzip, deflate" />      </item>      <item        name="http_accept_language">        <value          string="en-us" />      </item>      <item        name="http_host">        <value          string="localhost:48044" />      </item>      <item        name="http_referer">        <value          string="https://localhost:48044/account/login.aspx?returnurl=%2f" />      </item>      <item        name="http_user_agent">        <value          string="mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko" />      </item>      <item        name="is_login_page">        <value          string="1" />      </item>    </servervariables>    <querystring>      <item        name="returnurl">        <value          string="/" />      </item>    </querystring>    <form>      <item        name="__eventtarget">        <value          string="" />      </item>      <item        name="__eventargument">        <value          string="" />      </item>      <item        name="__viewstate">        <value          string="/12345678905ntiymjmwnq9kfgjmd2qwbaibd2qwagikd2qwagibd2qwamypdxyehgruzxh0bsfszwxlyxnlidewljgumtogtg9jywwgrgv2zwxvcg1lbnqeb1zpc2libgvnzgqcaw9kfgqcbq88kwanaqapfgiec18hrgf0yujvdw5kz2rkaggpzbygzg8pfgifaavprw50zxigew91cib1c2vybmftzswgcgfzc3dvcmqsig9yigluc2vydcb5b3vyifbjvibdyxjkigfuzcbjagvjayb0agugym94igjlbg93lmrkagmpdxychwfnzgqcba8pfgifawdkfgqcaq8pfgifaavyugxlyxnligluc2vydcb5b3vyifbjvibdyxjkigludg8gew91cib3b3jrc3rhdglvbidzignhcmqgcmvhzgvylcbhbmqgy2xpy2sgdghlicdmb2dpbibxaxroifbjvibdyxjkjybidxr0b24gymvsb3cuzgqcaw8pfgqfagufawhkzbgbbr5fx0nvbnryb2xzumvxdwlyzvbvc3rcywnrs2v5x18wawuey3rsmdaktwfpbknvbnrlbnqkq2hly2tcb3hqt0fnbrnjdgwwmcrjq2fuy2vsjgn0bdaxbrnjdgwwmcrjq2fuy2vsjgn0bdazls/fm9a6vvp18rwsd2ic7rg/xts=" />      </item>      <item        name="__eventvalidation">        <value          string="/wed22yslzwi7ykva222ghxs5i/gdgslzayxk222ubt+lqapeqxwhoqw8ippjhmjxgvdzyporp2222qsethdf2fkqkt3+giplj222/qq2a+jo7sdw69ci2b222177itzkmejtrs1w7najfkkqn8essz7gk+2222hijolatdrmbkydibi3/e22xjxszlb3zt02vabjbfgx61+zyi3222hiddmdq06row1papcbzabtz5cjbmk6kaeh/l222tzxqxnlc5z7kkxgno0zw1m8i6glrnouriemp0grg==" />      </item>      <item        name="ctl00$registrationid">        <value          string="" />      </item>      <item        name="ctl00$maincontent$hfreadconsent">        <value          string="yes" />      </item>      <item        name="ctl00$maincontent$userlogin$username">        <value          string="" />      </item>      <item        name="ctl00$maincontent$userlogin$password">        <value          string="" />      </item>      <item        name="ctl00$maincontent$btnloginwithsmartcard">        <value          string="login smart card" />      </item>      <item        name="ctl00$maincontent$checkboxpoam">        <value          string="on" />      </item>      <item        name="__viewstategenerator">        <value          string="cd85d8d2" />      </item>    </form>    <cookies>      <item        name="__antixsrftoken">        <value          string="58a7763a00bb42c286d47ac3ba217e64" />      </item>    </cookies>  </error> 

thanks

edit 1: after executed document.execcommand('clearauthenticationcache'); follow document.location.href="/";. error goes away after reloaded root url. reloaded page still caches pin. allowed me directly log in after selected popped out certificate without further asked pin number. not know why "clearauthenticationcache" can not clear cached pin.

this may answer question - client sends certificate server. server force client resend certificate. server has no idea browser got certificate - that's os (or 3rd party provider) code talks smart card. it's provider determine when user should re-prompted access smart card.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -