
2005年8月3日
找到解决的方法是:authCookie.Expires = authTkt.Expiration;
http://dotnet.org.za/thea/archive/2004/07/27/3010.aspx
I'm using Forms Authentication and Role based security for an app I'm working on. Ran into a problem that even though I set the IsPersistent parameter of the FormsAuthenticationTicket to true, next time I open the app I have to log in again...
authTkt =
new FormsAuthenticationTicket(1, userId, DateTime.Now, DateTime.Now.AddYears(1), true, userRoles);
Well, doh, the plain and simple answer is that you need to set the expiry date of the cookie, otherwise it expires when the user closes the browser. Problem solved :-)
authCookie.Expires = authTkt.Expiration;
More info on ASP.Net cookies on CodeProject.
posted @ 2005-08-03 12:34 tangle 阅读(517) 评论(0)
编辑

2005年7月13日
UrlRewriter 很好用,不过有一个问题,就是对于静态文件的引用失效,这个问题主要是因为将所有文件的的处理都从IIS转移到ASP.NET Engineer引起的,对于这个问题, 在
Mapping All File Extensions to ASP.NET 一文中作了详细的论述,不过.Text的程序中要把对于静态文件的处理以及url改写相关的程序抽离出来也有一定的难度,所以暂时这个问题还不能很好的解决。
另外,从效率方面看,IIS的URL改写效率应该更高,将全部的文件处理交给ASP.NET Engineer,也许并不是一个合适的选择。
posted @ 2005-07-13 21:05 tangle 阅读(384) 评论(0)
编辑

2005年7月1日
ScottGu 发布了ASP.NET小组对于Atlas项目的
最新规划,目标是让Ajax方式的开发更便捷。
CS的
下一个版本也将使用Ajax技术提升用户体验,Scott Watermasysk透露开发小组将有可能采用
Ajax.NET,
Prototype等开源框架。
posted @ 2005-07-01 10:56 tangle 阅读(249) 评论(0)
编辑

2005年2月2日
posted @ 2005-02-02 17:36 tangle 阅读(486) 评论(0)
编辑

2005年1月20日
posted @ 2005-01-20 00:44 tangle 阅读(288) 评论(0)
编辑

2005年1月1日
posted @ 2005-01-01 15:26 tangle 阅读(1576) 评论(4)
编辑
posted @ 2005-01-01 00:49 tangle 阅读(266) 评论(0)
编辑

2004年12月31日
posted @ 2004-12-31 22:51 tangle 阅读(317) 评论(0)
编辑