Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 06, 2012 02:56 AM by inungh
Nov 05, 2012 04:57 AM|LINK
Can I assume "Request.IsAuthenticated" get results that user is Authenticated?
I tried it on login.aspx and check the result is false even I have right user name and password.
If I can not use this which class I can use to know is user authenticated?
Your help and information is great appreciated,
Nov 05, 2012 05:00 AM|LINK
Request.IsAuthenticated is not just for forms authentciation - it is valid no matter what type of authentication is being used (Windows, Passport, Forms or our own custom scheme)
HttpRequest.IsAuthenticated will be true when the user making the request has been authenticated. Essentially, this property provides the same information as Context.User.Identity.IsAuthenticated.
Nov 05, 2012 05:26 AM|LINK
Is it too earlier or too late to check this when user click on login, since the server might not authenticate user yet?
Should I use on the page load on Default.aspx?
Thanks agian for helping,
Nov 05, 2012 08:10 AM|LINK
Request.IsAuthenticated checks to see if the request being sent is authenticated - using on the login page is too early if the Authentication code for you application has not yet been called (ie before your login control click button has been called).
If you have your login code working, then the Request.IsAuthenticated property on the Default.aspx page will work (if you have logged in)
Nov 05, 2012 08:18 AM|LINK
After he enters the username and pwd you have to check whether he is authenticated or not before that how can you do it??Check in the login page
Nov 05, 2012 08:27 AM|LINK
Are you using Forms authentication? If so, you can use Membership.ValidateUser(username As String, password As String)
Nov 06, 2012 02:56 AM|LINK
Thanks a million for helping and information,