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 5434
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="Use Cookies" 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="Use Cookies" timeout="180"> </sessionState>
Frinavale 9,735
Recognized Expert Moderator Expert
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....especia lly 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 the client, my
session expires as soon as i login to the application. This works fine
on another machine.
Do any one have idea about this
Thanks in advance
|
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 appreciated.
|
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 possible reasons for such a problem?
thanks,
gomzi.
| |
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 in MVS2005) but when i posted on the server it's not working ...
For example in a page i have to do the following:
If (Session("email") <> "") Then
temail.Text = Session("email")
re = cust.GetCustomerName(temail.Text)
Else
|
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 session life in IIS morethan 20 mins and while setting session in Login page i have set 20000,100000 for timing. but also i could not rectify this problem, Pls guys help me out .................
|
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 code behind.
I have done my project using C# and asp.net
Can anyone please help me out
regards
cmrhema
|
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, " + Session.ToString();
I want that when the session expires either user will see LogIn page or the sesion resume their values.
Where i write the code for the above.... thanks for your code in advance
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |