Probably I don't understand nothing about authentication...



Hy all,

Here it is my web.config

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0";>
<appSettings/>
<connectionStrings>
<add name="MySqlConnection" connectionString="Data
Source=DESKTOP\SQL2005;Initial Catalog=MSSql16952;Persist Security
Info=True;User ID=sa;Password=A1971_?05_G29"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed" />
</providers>
</membership>
<roleManager
enabled="true"
cacheRolesInCookie="true"
defaultProvider="AspNetSqlRoleProvider"
cookieName=".ATTILIOGELOSA.IT"
cookieSlidingExpiration="true"
createPersistentCookie="false"
cookieProtection="All">
<providers>
<clear />
<add name="AspNetSqlRoleProvider"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MySqlConnection"
applicationName="AttilioGelosa"/>
</providers>
</roleManager>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" cookieless="UseUri" />
</authentication>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</configuration>




And this is in the directory I want to protect:




<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0";>
<system.web>
<authorization>
<allow roles="TimeTraking" />
<deny users="?"/>
</authorization>
</system.web>
</configuration>



Now. The question is: why I have to insert my username and password *EVERY*
time I try to go to one of the protected page? E.G. I try to go to
Default.aspx in the protected directory and (...correctly...) system asks me
to type username and password. After that if I click on one of the page
"under" the Default.aspx the system ask me username and password another
time...

Thank you

Attilio


.



Relevant Pages

  • Re: WSE 3.O Web Service with ASP.Net Client using VB.Net
    ... <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"</a>;> ... ''' Constructs an instance of this security token manager. ... Dim principal As GenericPrincipal = New ... There is a logon page which takes a Username and Password, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: Routing mail to a SMTP server
    ... I am unsure of where the username & password are configured correctly - BT ... >> Unfortunetly they cant give us configuration details on how to configure ... >> I went into system manager and changed the properties of the Virtual SMTP ... >> What is the correct config for the exchange server (2003 small buisness ...
    (microsoft.public.exchange.admin)
  • How to change user account properties by ASP.NET?
    ... I have the configuration: ... Username, Password and Full Name ... But as soon as that user has been included into Administrators group the ... May be orginize on the target server a group, add the users into the group ...
    (microsoft.public.de.inetserver.iis.asp)
  • Re: Indecent pics of children and possession
    ... Have you read the fine print of these providers? ... We keep logs for a maximum of 5 days to protect the system from being ... *regularly* carrying out an illegal activity? ... download 2 DVD movies per year, ...
    (uk.legal)
  • How to change user account properties by ASP.NET?
    ... I have the configuration: ... Username, Password and Full Name ... But as soon as that user has been included into Administrators group the ... May be orginize on the target server a group, add the users into the group ...
    (microsoft.public.dotnet.framework.aspnet.security)