web application login help

M

Mohan

Hi all,

I am having a problem implementing forms authentication for a web
application. I have a login screen and any unathorized user is directed
to the login screen. The problem is that the login screen keeps
refreshing even if i enter the correct credentials.

using a database to verify the login credentials. the code in the
web,config file is as follows.I am not sure what i am missing. I would
appreciate any help in this matter.

<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="60"
loginUrl="default.aspx"/>
</authentication>


Thanks
MB
 
T

Tim_Mac

hi MB
do you have any code to redirect the user?
e.g. FormsAuthentication.RedirectFromLoginPage(username, false)...
you should run this after you have successfully validated the user's
credentials.
if you do have this and its not working, post the relevent code and we
can take a closer look

hope this helps
tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top