Re: How do I tell if the user if logged in?

Tech-Archive recommends: Fix windows errors by optimizing your registry



It is mainly for restricting access to pages, but if don't configure any
protected pages then you can still use the other features. Perhaps Forms
Authentication might be a little over the top for what you need, but it
is quite a nice system once you get to grips with it.

Nick...

Alan Silver wrote:
> To Elton and Nick,
>
> I have used Windows Forms Authentication, but was under the impression
> that this was for restricting access to certain pages. I am not
> restricting access at all, nor forcing people to log in, I'm just
> offering extra features for those who do log in.
>
> Is this also covered by WFA? If so, please could you elaborate a little,
> as my reading of it wasn't like that.
>
> Thanks for the replies.
>
>> Why not use the built in FormsAuthentication system to handle your
>> logins? This way you could configure and limit access to pages quite
>> easily by just editing web.config. You could also check to see if your
>> users are logged in by checking Context.User.IsAuthenticated.
>>
>> There are many tutorials on the web for how to setup Forms
>> Authentication. It would probably be more secure and quicker than
>> implementing your own system from scratch.
>>
>> Nick...


.



Relevant Pages

  • Re: How do I tell if the user if logged in?
    ... protected pages then you can still use the other features. ... Perhaps Forms Authentication might be a little over the top for what you need, but it is quite a nice system once you get to grips with it. ... that this was for restricting access to certain pages. ... Alan Silver. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I tell if the user if logged in?
    ... I have used Windows Forms Authentication, but was under the impression that this was for restricting access to certain pages. ...
    (microsoft.public.dotnet.framework.aspnet)