Categories: Blog

Forms Authentication in ASP.NET 2.0

Forms authentication is amazingly simple in ASP.NET 2.0. Not only does it manage user credentials and roles for you, it also provides controls for logging in, creating new users, e-mailing lost passwords, and more. It even maps requests to roles, something that required some non-trivial coding in ASP.NET 1.x.

Here’s a tip to make life easier with the new LoginStatus control. I set its LogoutPageUrl property to my home page so users would be redirected back to the home page after logging out. It didn’t work. At first I figured it was a bug in beta 1, but then I found the LogoutAction property. I set LogoutAction=“Redirect“ and lo and behold, clicking the Logout link sent me right back to the home page. Moral: LogoutPageUrl is only meaningful if LogoutAction=”Redirect.” Case closed!

Jeff Prosise

Recent Posts

8-Step AWS to Microsoft Azure Migration Strategy

Microsoft Azure and Amazon Web Services (AWS) are two of the most popular cloud platforms.…

3 days ago

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

2 weeks ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

4 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

1 month ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago