I working on Social Network.
It has a first Login Page. After Login I can navigate to many form in WebSite from Menus.
Here I have a problem with, whenever I trying to Click on Menu to open a web page, my website automatically goes on Login page.
It's happened sometime continuously, may be 2-3 time in day, or sometime work better.
Can anyone tell me actual problem of this website?
Loading
Iftikar HussainPosted Aug 17, 2013, 8:29 AM
Set the authorization after authentication in your web.config
Regards,
Iftikar
Ravi ShekharPosted Aug 17, 2013, 6:11 AM
Write log file in all catch block. if it occurs from any exception .you can easily find with this log file.
Nilesh DalviPosted Aug 17, 2013, 6:04 AM
xml version="1.0"?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Data.DataConfiguration,Data"/>
configSections>
<dataConfiguration defaultDatabase="SampleDatabase"/>
<connectionStrings>
<remove name="SampleDatabase"/>
<add name="SampleDatabase" connectionString="Data Source=Nilesh;Initial Catalog=Smaple;Integrated Security=True" providerName="System.Data.SqlClient"/>
connectionStrings>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="500000000">requestLimits>
requestFiltering>
security>
system.webServer>
<system.web>
<httpRuntime executionTimeout="4800" maxRequestLength="500000000"/>
<compilation debug="true" targetFramework="4.0" />
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="2880" />
authentication>
<sessionState timeout="2880">sessionState>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
providers>
membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
providers>
profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
providers>
roleManager>
system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
system.webServer>
configuration>
Ravi ShekharPosted Aug 17, 2013, 4:55 AM
If this is happening becoz of session you have to manage a session expiry page.when you session expires you redirect to your session expiry page.
If this is happening due to any error or any exception i suggest you to use exception logger.
Share you code .I want to know that how u manage a login? and which authentication you are using?