I am using the Login control with the built in default asp.net database ASPNETDB.MDF in the App_data folder.
I have created an authorised members only page which can be accessed after logging in.
And a default page with a loginview control.
When I login using the local pc everything works well. If I attempt to access the authorised members page, I get redirected back to my login page,. After logging in I get redirected back to the authorised members page and on the login view control on the default page also tells me I'm logged in.
However if I access this site from another pc and login, I can't gain access to the authoised members page and the loginview control tells me I'm not logged in. The login control shows no errors with my login. If I do place a bad password or username the login control does show an error as expected.
I feel that maybe I have set the site up wrong. Heres my web.config file.
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
applicationName="/"
/>
Can anybody help me please?
Replies
Know the answer? Post it — somebody with the same question will find it here.