hey all could you please help me fix this problem? i spent hours looking for the solution, but haven't solved the problem.

[U]web.config file[/U]
[B]authorization[/B]
[code=xml]<authorization>
          <allow roles="Admin"/>
          <allow roles="Employee"/>
          <allow roles="Manager"/>
          <deny users="?"/>
          </authorization>
<roleManager enabled="true"/>
<compilation debug="true">

authentication

<authentication mode="Forms">
      <forms loginUrl="Login.aspx" 
         protection="All" timeout="30" 
         name=".login" path="/" requireSSL="false"  slidingExpiration="true" defaultUrl="uploadreport.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/>
    </authentication>

and the code for the login file

protected void Page_Load(object sender, EventArgs e)
        {
            if (User.Identity.IsAuthenticated)
            {
                Response.Redirect("uploadreport.aspx");
            }
            else
            {
                Response.Write("Login is not successful. Please try again");
            }
        }

did i do something wrong? thanks for your help, really appreciate it :) :) :)

oh shoot. how to post code correctly, sorry for being so very dumb on this,

[code]YOUR CODE HERE[/code]

[code=asp.net]YOUR CODE HERE[/code]
where asp.net can be replaced by various languages (PHP, ASP, Java, C, C++, JSP, JavaScript, SQL, etc)

Edited 3 Years Ago by happygeek: fixed formatting

Hey ppl

i am kind of new to asp.net if you don't mind can you help me in below process.

i am working on a C# asp.net site with forms authentication.i wanted to implement login,logout and loging session management for every user do you have any resource or tutorial for that.i want to store user credential info is sql server 2005.

hye missbeginner..
i'm having the same problem like you..if don't mind,can u place your latest code here..

This question has already been answered. Start a new discussion instead.