Connecting Tech Pros Worldwide Forums | Help | Site Map

.Net Login Control Validating but not logging in

Newbie
 
Join Date: Aug 2008
Posts: 14
#1: Sep 5 '08
I was under the impression that the .Net Login control would not only validate but it would do all actual logging in work for me.

My application is validating my suer and password but then when the page refreshes I am still at the login screen (not the protected page in the RedirectURL) and my LoginStatus control doesn't see me as logged in either.

Is this a common bug? If you need to see any specific code them please ask as I am not going to post everything it could relate to.

Shashi Sadasivan's Avatar
Moderator
 
Join Date: Aug 2007
Location: Brisbane, Australia
Posts: 1,414
#2: Sep 5 '08

re: .Net Login Control Validating but not logging in


I havent used the .Net login control yet, but do remember playing with it.
Just a few things you may want to do
Have you set any redirect url's in it?
have you placed breakpoints to check if the redirected page kicks in?
Are there any setting to be made in the web.config file (probably forms authentication, or role based authentication)
Newbie
 
Join Date: Aug 2008
Posts: 14
#3: Sep 5 '08

re: .Net Login Control Validating but not logging in


Quote:

Originally Posted by Shashi Sadasivan

I havent used the .Net login control yet, but do remember playing with it.
Just a few things you may want to do
Have you set any redirect url's in it?
have you placed breakpoints to check if the redirected page kicks in?
Are there any setting to be made in the web.config file (probably forms authentication, or role based authentication)

Thanks for the reply mate. I'll take each point one by one.

1) The control should redirect to the ReturnURL querystring parameter by default shouldn't it.
2) Yep placed three key one in LoginError, LoggingIn and LoggedIn. They are called correctly depending one the details provided so this works 100%.
3) I have forms authentication as below:

<forms name="MyApp" path="/secureweb" loginUrl="login.aspx" protection="All" timeout="30" requireSSL="false" slidingExpiration="true" defaultUrl="main.aspx" domain="MyApp" cookieless="UseCookies" enableCrossAppRedirects="false"/>

I also am using a custom SqlMembershipProvider but it really just does what the stock one does currently. I will change this once I have the basics working.
Newbie
 
Join Date: Aug 2008
Posts: 14
#4: Sep 8 '08

re: .Net Login Control Validating but not logging in


This is still happening. Anyone else know of a cause?
Reply


Similar .NET Framework bytes