• Got a Tipila, google, windows live or facebook account ?
Tips tagged: forms-authentication
1
votes
ASP.NET forms authentication ticket becomes invalid if the application pool recycles. The reason is the machine key is used in the encryption and in the default configuration, a new key is generated when the app pool is restarted. So we need to specify a static machine key. This is how to do it. Add the following to sy ...
0
votes
If you ever noticed that returnUrl variable has a url encoded and non-encoded versions of the same url, it's actually how it works and nothing is wrong with that. For more info http://blogs.msdn.com/b/vijaysk/archive/2008/01/24/anatomy-of-forms-authentication-return-url.aspx
0
votes
Use this code to get the encrypted text of the forms authentication link. FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(userName, false, 60); or FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, username, DateTime.Now, DateTime.Now.AddMinutes(30), isPersistent, userData, FormsAuthen ...
0
votes
Use this link for more info on ASP.NET forms authentication http://support.microsoft.com/kb/910443
4
Matching Tips
Search options
  • Use the syntax:
    seach text, tag1, tag2,...
    to search for tips with the given tags.
  • Add ,mytips to the search text to search within MyTips only.
  • Use the syntax:
    ,tag1, tag2,...  to get all tips with the given tags.
Login to Tipila