Ask a Question related to ASP.NET Security, Design and Development.
-
dave #1
Authentication Keeps returning to Login Page
I have the following problem:
my web.config file (see below) protects the entire website and when a user
tries to go to a page they are redirected to the login - all is well..
However, even though they have been authenticated it is still returning to
the login page. However if i then go to the original page i wanted it will
let me in, as i have now been authenticated, so that part is working...
The login code is straight forward enough (see below), but i cannot for the
life of me work out why it keeps returning to the login page. I have tried
many variations to get me to the originally requested page, but no success.
Thanks in advance..
Web Config settings.
<configuration>
<system.web>
<customErrors mode="Off"/>
<pages smartNavigation="true"/>
<compilation debug="true"/>
<authentication mode="Forms" >
<forms name="App1" path="/" loginUrl="login.aspx" >
<credentials passwordFormat="Clear">
<user name="tester" password="testing" />
</credentials>
</forms>
</authentication>
<authorization>
<allow users="tester"/>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
Login Code.
sub DoLogin(objSender as Object, objArgs As EventArgs)
if FormsAuthentication.Authenticate(username.value, password.value) then
formsauthentication.redirectfromloginpage(username .value, "False")
end if
end sub
dave Guest
-
Strange problem with Forms authentication: After successfull login, login page is still displayed
Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last... -
OWA authentication via Login Page using ASP.Net
Hi, first of all sorry for the cross posting. i have a problem with an ASP.NET application that requires to redirect the user to an OWA URL (for... -
forms authentication returns 401 instead of going to login page
Hi, I have an app in the 1.1 framework that uses forms authentication . In the normal case, if the user requests a page and is not logged in,... -
Forms Authentication without Login Page
Is there any way to log someone in using Forms authentication *without* using RedirectFromLoginPage()? My reason for asking is that I'm trying to... -
Authentication forms and SSL on the login page
Hi all, I'm tryiing to set up security for a ASP.NET web application in order to force all the users to go to a login page with an SSL connection....



Reply With Quote

