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!
On Jul 12 2004 3:21 PMBy jprosise
If you set LogoutAction to Redirect, it will indeed go to the page defined by LogoutPageUrl. But if you try to access the protected page, you will be suprised to see that your session is still alive. So is it a bug or that we need to kill the session ourselves in the OnLoggedOut event?
Hi allI know I am still a newbie here but I found these really great sites that I feel every one would appreciate, check them out: - <a href='http://www.wholesale-watch.1-wholsale.com">http://www.wholesale-watch.1-wholsale.com' > Wholesale Watch </a> -> http://www.wholesale-watch.1-wholsale.com">http://www.wholesale-watch.1-wholsale.com - - <a href='http://www.wholesale-pocket-bike.1-wholsale.com">http://www.wholesale-pocket-bike.1-wholsale.com' > Wholesale Pocket Bike </a> - -> http://www.wholesale-pocket-bike.1-wholsale.com">http://www.wholesale-pocket-bike.1-wholsale.com - - <a href='http://www.new-zealand-car-rental.rshp.biz">http://www.new-zealand-car-rental.rshp.biz' > New Zealand Car Rental </a> - -> http://www.new-zealand-car-rental.rshp.biz">http://www.new-zealand-car-rental.rshp.biz - - <a href='http://www.denver-colorado-real-estate.top-real-estate.biz">http://www.denver-colorado-real-estate.top-real-estate.biz' > Denver Colorado Real Estate </a> - -> http://www.denver-colorado-real-estate.top-real-estate.biz">http://www.denver-colorado-real-estate.top-real-estate.biz - - Thanks all