Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Probably I don't understand nothing about authentication...

Reply
Thread Tools

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

 
 
attilio
Guest
Posts: n/a
 
      02-13-2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
re module: Nothing to repeat, but no sre_constants.error: nothing torepeat ? Devin Jeanpierre Python 2 02-14-2012 01:33 PM
Read all of this to understand how it works. then check around on otherRead all of this to understand how it works. then check around on other thelisa martin Computer Support 2 08-18-2005 06:40 AM
Probably a dumb s/// question. Mark Healey Perl 2 03-16-2005 04:51 PM
FA: Complete lab kit 10 routers, cables, +many extras, probably going cheap B.M. Wright Cisco 0 04-23-2004 08:21 PM
help with if ...(probably very lame question) Mariusz VHDL 7 01-21-2004 09:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57