Forms Authentication

  • Thread starter Thread starter Mike Green
  • Start date Start date
M

Mike Green

Hi

I'm building a website with ASP.Net Forms Authentication. Users can log in
ok and certain web pages are secure unless a user is logged in.

However, how can I detect via asp.net that a user is logged in?
Depending whether or not they are logged in, I would like to change the
content of a page.

Any help would be appreciated.

Thanks

Mike Green
 
You can use the
HttpContext.Current.User.Identity.IsAuthenticated property to see if the
current user is authenticated.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Back
Top