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.
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings/>
<system.web>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
applicationName="/"
/>
</providers>
</membership>
<authentication mode="Forms">
<forms name=".ASPXFORMSAUTH" loginUrl="Login.aspx" timeout="80" />
</authentication>
<compilation debug="true"/>
</system.web>
<system.net>
<mailSettings>
<smtp from=[email protected]>
<network host="192.168.55.5" password="" userName="" />
</smtp>
</mailSettings>
</system.net>
</configuration>
Can anybody help me please?