0

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 :) :) :)

4
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by new SE
0

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

0

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 by happygeek: fixed formatting

0

i have found the solution, in case someone have the same problem with me :)

0

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.

0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.