在验证模式为Forms的情况下,如何解决自动登录问题. (已解决)

http://topic.csdn.net/t/20051014/09/4325706.html

在winform 做了登录界面,如何解决webform中web.config设置了<authentication mode="Forms"> 的自动登录情况,当然还有一种方式httpwebrequest也类似,看了相关的资料,还没有找到解决办法.?????

在csdn问了一天,竟没人答,地址为:http://community.csdn.net/Expert/topic/5488/5488918.xml?temp=.3648798

最终自己忽发奇想,竟然解决了,兴奋ing

方法:在web.config中加上

<location path="testlogin.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="winlogin.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

可能是基础不牢靠吧,反正很高兴,哈哈....

找到一个类似的文章,写的不错,地址为:http://blog.csdn.net/kgdiwss/archive/2005/06/17/299652.aspx

你可能感兴趣的:(Web,.net,xml,webform,WinForm)