cookie Asp.net 4.0 小问题

<authentication mode="Forms" >
    <forms name="MyCookieName" cookieless="UseCookies"></forms>
</authentication>
解决:使用Form登录验证且希望使用Cookie方式时,建议设置 cookieless="UseCookies", 因为这个参数的默认值是:cookieless="UseDeviceProfile",Asp.net可能会误判。
详见:http://www.cnblogs.com/fish-li/archive/2011/07/03/2096903.html
posted @ 2011-12-20 11:28  谭客  阅读(119)  评论(0编辑  收藏  举报