悬赏园豆:5
[已关闭问题]
<P>在web.config 加上了 machineKey,form 设置成如下:</P>
<DIV class=cnblogs_code><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">authentication mode</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">Forms</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top> </SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">forms name</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">kyzhi</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"> loginUrl</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">/login</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"> domain</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">.kyzhi.com</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"> protection</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">All</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000"> timeout</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #800000">300</SPAN><SPAN style="COLOR: #800000">"</SPAN><SPAN style="COLOR: #000000">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"></</SPAN><SPAN style="COLOR: #000000">authentication</SPAN><SPAN style="COLOR: #000000">></SPAN></DIV>
<P>为何 <A href="http://kyzhi.com">http://kyzhi.com</A> 和 <A href="http://www.kyzhi.com">http://www.kyzhi.com</A> 就不能“通”呢?</P>
<P>另外 <A href="http://www.kyzhi.com">http://www.kyzhi.com</A> 这个域名登陆后退不出去...! 难过死了,怎么会这样?</P>
<P>用了下面这句:</P>
<DIV class=cnblogs_code><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><SPAN style="COLOR: #000000">System.Web.Security.FormsAuthentication.SignOut();</SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #000000"> </SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #000000"><A href="http://kyzhi.com">http://kyzhi.com</A> 则正常。</SPAN></DIV>