首页 新闻 搜索 专区 学院

ASP.NET 同域单点登录遇到的问题

0
悬赏园豆: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">&lt;</SPAN><SPAN style="COLOR: #000000">authentication&nbsp;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">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">forms&nbsp;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">&nbsp;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">&nbsp;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">&nbsp;&nbsp;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">&nbsp;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">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://space.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">&lt;/</SPAN><SPAN style="COLOR: #000000">authentication</SPAN><SPAN style="COLOR: #000000">&gt;</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">&nbsp;</SPAN></DIV> <DIV class=cnblogs_code><SPAN style="COLOR: #000000"><A href="http://kyzhi.com">http://kyzhi.com</A> 则正常。</SPAN></DIV>
Hunts.C的主页 Hunts.C | 菜鸟二级 | 园豆:266
提问于:2008-08-21 18:03
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册