English 中文(简体)
如何删除Kuchie的Austhentication
原标题:How to Delete Authentication Cookie

I am developing ASP.NET MVC application. I made some changes to save some extra info in cookie in latest version. Few of my customers are still running old version. Is there any way to expire the existing cookies of my existing customer and enforce them to log-on again when they connect to my new application hosted in IIS?

Thanks,

最佳回答
问题回答

我在网上给我的厨师以更新的名称,这似乎解决了我的问题:

 <forms loginUrl="~/Account/LogOn" name="InsightWebMobileCookie2" timeout="10000" slidingExpiration="true" />

这里的问题是,你不能读到 co子到期日,因此,你们不知道老用户的 co。

因此,你们的选择是:

  1. If you can figure out who is from the old version - have logic to expire their cookie.
  2. Force everyone to logout once if they dont have a cookie named "VersionLogout". Once you force their logout, set a cookie named "VersionLogout" with a value of 1.2 for example, this way you know you ve forced their logout for a particular version and they (going forward) won t be prompted again.

您将把该守则放在申请中。 在全球的AusenticateRequest活动. at this time auser has been accreditationed so, 你可以检查他们的厨师。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签