Hi all
I have developed Website in asp.net. The site was working fine for more than 6 months. Now from 3 to 4 days I m facing a problem. When I login as Admin to Administrator and create Session for the administrator. The Session expires in less than a minute. I don't know why i m facing this problem. I m sure that I did nothing to code that cause this problem.
Any Help in this issue.
Thanks in Advance.
8 5399
check your we.config file
Thanks for ur quick reply
I did nothing for sessiontimeout in web.config file. I want the session to keep live for only 20 minutes.
But there is setting related to session time out in web.config
Please look into my web.config file. -
<?xml version="1.0"?>
-
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
-
<configSections>
-
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
-
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
-
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
-
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
-
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
-
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
-
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
-
</sectionGroup>
-
</sectionGroup>
-
</sectionGroup>
-
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
-
</configSections>
-
-
<connectionStrings>
-
<add name="dbase_DataConnectionString6" connectionString="Data Source=tcp:xxxxx;Initial Catalog=xxxx;User ID=xxx;Password=xxx;Connection Timeout=120;" providerName="System.Data.SqlClient"/>
-
</connectionStrings>
-
<system.web>
-
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" >
-
<controls>
-
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
-
</controls>
-
</pages>
-
<customErrors defaultRedirect="~/ErrorInfo.aspx"/>
-
<httpHandlers>
-
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
-
<remove verb="*" path="*.asmx"/>
-
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
-
</httpHandlers>
-
<authentication mode="Windows"/>
-
<httpModules>
-
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
-
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
</httpModules>
-
<compilation debug="true">
-
<buildProviders>
-
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
-
</buildProviders>
-
<assemblies>
-
<add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
<add assembly="Microsoft.SqlServer.ConnectionInfo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
-
<add assembly="Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
-
<add assembly="Microsoft.SqlServer.SmoEnum, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
-
<add assembly="Microsoft.SqlServer.SqlEnum, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
-
<add assembly="Microsoft.Vsa.Vb.CodeDOMProcessor, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
-
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
-
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
-
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
-
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
-
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
-
</assemblies>
-
</compilation>
-
</system.web>
-
<system.web.extensions>
-
<scripting>
-
<webServices>
-
</webServices>
-
</scripting>
-
</system.web.extensions>
-
<system.webServer>
-
<validation validateIntegratedModeConfiguration="false"/>
-
<modules>
-
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
</modules>
-
<handlers>
-
<remove name="WebServiceHandlerFactory-Integrated"/>
-
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
-
</handlers>
-
</system.webServer>
-
-
<rewriter>
-
-
<rewrite url="home/(.+)" to="~/$1.aspx"/>
-
-
</rewriter>
-
</configuration>
Also The Site is working fine locally when I run it from visual Studio
@kunal pawar
I add the following to web.config file.
<sessionState cookieless="UseCookies" timeout="60"> </sessionState>
Before I add this line session expires within minute. Now session remain live for 4 to five minutes when I leave the page inactive.
@Hamayun Khan
<sessionState cookieless="UseCookies" timeout="180"> </sessionState>
Sometimes Cookieless Sessions are not acceptable, especially in websites that require authentication....like this case.
My assumption would be that your worker process is getting recycled because it is growing too large.
If this is the case, then not only will the administrator's session expire, all users using the system will have their sessions expire at the same time.
Make sure that all processes that use resources (like database connections, files access, etc) are cleaned up when they are no longer being used....especially with regards to administrator features.
-Frinny
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Rahul Kansara |
last post by:
Hi e'body,
I have an application developed in ASP.Net and have installed on iis
server. The problem i am encountering is when I try to access the
application through Internet explorer from one of...
|
by: Welman Jordan |
last post by:
Hello all,
In Session_OnStart, I set a session variable:
Session = DateTime.Now;
and
Session.Timeout = 15;
|
by: ACaunter |
last post by:
Hi all,
I was wondering how i could write some code which would automatically open
the Login Page once the session has expired?
--
AdamPC@hotmail.com
|
by: chamaratharanga |
last post by:
I have set the session timeout as 120 mins in the Global.asax. However
my session expires within about 5-10 mins at different pages. I used
"InProc" as the session state mode. Any help is...
|
by: gomzi |
last post by:
hi,
I am storing values using the session object(asp.net 2.0). The problem i am facing is that the session expires suddenly for no apparent reason.
Could anyone tell me as to what may be the...
|
by: maha el ghoul |
last post by:
Hello Guys, am a new member..and am new to asp.net..Am using VB.net 2.0,my website uses a unique application pool.The session used to work just fine when i was testing my website on localhost (browse...
|
by: shiyazahammed |
last post by:
Hi techies,
In my asp.net 2.0 website , after login, within 5 mins session expires , I am doing all the actions according to UserName,ID,Privileges all are stored in Session since login.I have set...
|
by: cmrhema |
last post by:
hello
I have a project wherein I am calling all pages using session. When a session expires I want a page to be displayed. I want this to be done in web.config file or global.asax and not through...
|
by: agarwalsunitadhn |
last post by:
my problem is that after every 20minutes i got the error that the
Object reference not set to an instance of an object.
and highlight the line
lblWelcome.Text = "Welcome, " +...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |