Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

forms-authentication

mixed mode authentication against AD and fallback to the database if it fail with Membership providers

August 30, 2022 by Magenaut

my user will use form authentication against Active Directory or database. Theres no Windows Integrated Authentication there!!

Categories ASP.NET, Q&A Tags asp.net, asp.net-membership, authentication, forms-authentication, mixed-mode Leave a comment

Session_End in Global.asax.cs not firing using forms authentication

August 30, 2022 by Magenaut

I have an asp.net 4.0 application that is using forms authentication set to a timeout at 45 minutes. I would like to redirect the user to a timeout page when the session has expired. Can anyone tell me how to do this? I am running .net 4.0.

Categories ASP.NET, Q&A Tags asp.net, c#, forms-authentication, session-timeout Leave a comment

Page.User.Identity.IsAuthenticated still true after FormsAuthentication.SignOut()

August 30, 2022 by Magenaut

I have a page that when you press ‘log out’ it will redirect to the login.aspx page which has a Page_Load method which calls FormsAuthentication.SignOut().

Categories ASP.NET, Q&A Tags asp.net, c#, forms-authentication Leave a comment

ASP.Net FormsAuthentication Redirect Loses the cookie between Redirect and Application_AuthenticateRequest

August 30, 2022 by Magenaut

I have a FormsAuthentication cookie that is persistent and works independently in a development, test, and production environment. I have a user that can authenticate, the user object is created, the authentication cookie is added to the response:

Categories ASP.NET, Q&A Tags asp.net, cookies, forms-authentication, iis-6, redirect Leave a comment

ASP.Net Store User Data in Auth Cookie

August 30, 2022 by Magenaut

I want to store some data like the user nickname and user ID (table primary key) in the user data section of the auth cookie. The reason I’m doing this is to retain this data when the browser is closed, without having the user relogin.

Categories ASP.NET, Q&A Tags asp.net, authentication, forms-authentication, membership Leave a comment

How to check user is “logged in”?

August 30, 2022 by Magenaut

I am using form authentication with below method in my ASP.NET application

Categories ASP.NET, Q&A Tags asp.net, c#, forms-authentication Leave a comment

Why is included in the following example?

August 30, 2022 by Magenaut

The ? wildcard represents unauthenticated users while * represents all users, authenticated and unauthenticated. My book shows the following example of URL authorization:

Categories ASP.NET, Q&A Tags asp.net, asp.net-membership, authentication, authorization, forms-authentication Leave a comment

How to create a CustomPrincipal globally (with and without AuthorizeAttribute)

August 29, 2022 by Magenaut

I have a custom Principal/Identity for my ASP.NET MVC4 web app. I have also created a AuthorizeAttribute to instantiate my custom principal, assigning it to httpContext.User in controllers where I require Authentication.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, forms-authentication, iprincipal Leave a comment

OWIN Self-Host CookieAuthentication & Legacy .NET 4.0 Application / FormsAuthenticationTicket

August 29, 2022 by Magenaut

I have two bounded contexts:

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, forms-authentication, formsauthenticationticket, owin Leave a comment

Strange problem with cookies in Safari and Asp.net

August 29, 2022 by Magenaut

I have a strange problem on my login page in Asp.net this problem only happens with Safari.

Categories ASP.NET, Q&A Tags asp.net, cookies, forms-authentication, redirect, safari Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page9 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress