易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET 2.0 二级域名Forms验证模式下共享登陆状态

在asp.net 1.1中, 二级域名Forms验证模式下共享登陆状态的方法请参考下面文章:
http://www.cnblogs.com/caomao/archive/2005/07/05/186606.html
而在asp.net 2.0中实现方法更为简单,只需修改web.config文件即可,修改方法如下:
<authentication mode="Forms">
    <forms name=".ASPNETFORM"  domain="yourdomain.com" loginUrl="/login.aspx" defaultUrl="/default.aspx" protection="All" timeout="30" path="/" requireSSL="false" slidingExpiration="true" enableCrossAppRedirects="false" cookieless="UseDeviceProfile" />
</authentication>
注意forms节点的domain属性, 如果你的主域名和子域名是www.abc.com, 123.abc.com, .....,那么此domain属性你应该填abc.com即 domain="abc.com".
很简单吧, 祝你实现成功!
原帖转自:http://www.cnblogs.com/jzywh/archive/2007/09/23/902905.html


相关文档:

asp.net中的ResolveUrl 完美解决方案

根据我个人使用ASP.NET的经验,和通过在网上搜索。我发现,Page的ResolveUrl方法给我们带来了一些比较严重的问题。
     最常见的问题是在页面或控件以外的范围不能使用它。
     其他的问题都是bug。如它不能正确处理一些你给的URL。例如,尝试 Page.ResolveUrl("~/test.a ......

ASP.NET Events

Here is the full list of all events that occur in an ASP.NET application, from the standard modules, to the page, master page, page controls and master page controls.
I have not included the IIS 7 specific events (Log, for example).
What
When
HttpApplication.BeginRequest
HttpApplication.Auth ......

Cascading DropDownLists With ASP.NET and jQuery


Cascading drop down lists is a really nice feature for web developers. I thought it was time to write an article on how to do this using ASP.NET and jQuery. Well here’s one way of doing it. Before we get started, this example uses the latest version of jQuery which is 1.3.2.&n ......

asp.net探针仿petshop的一个数据访问层的类

仿petshop的一个数据访问层的类 乘风现有原创程序乘风广告联盟系统乘风多用户计数器 乘风多用户PHP统计系统 乘风电影程序乘风网址程序乘风广告管理系统乘风asp.net探针仿petshop的一个数据访问层的类 using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
namespace yueying.Compon ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号