473,472 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is there any way to see why a session is ending?

I have an ASP.NET application where the user will be right in the
middle of doing something and the sessions ends and then it blows up
because I have stored some things in the Session hashtable. I know
it's not ending because of the usual culprits (timeout, web.config file
changing, anti-virus software scanning the dll, etc.). So I am
wondering if there is a way to ask IIS why the session ended. It could
be programmatically or it could be manually looking in an IIS log
somewhere or anything else. thanks in advance.

May 2 '06 #1
2 1198
BD,

Does this happen to all users using the system at the same time.
Are users uploading files?
could it be that the ASP.NET Process is recycling for some reason. You IIS?
I have seen at times when memory is low on the server sessions can drop out.
!!?
I would like to hear the solution from someone that really knows.
What are the possibilities?

SA
"Big Daddy" <jo********@yahoo.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
I have an ASP.NET application where the user will be right in the
middle of doing something and the sessions ends and then it blows up
because I have stored some things in the Session hashtable. I know
it's not ending because of the usual culprits (timeout, web.config file
changing, anti-virus software scanning the dll, etc.). So I am
wondering if there is a way to ask IIS why the session ended. It could
be programmatically or it could be manually looking in an IIS log
somewhere or anything else. thanks in advance.

May 2 '06 #2
Hi,

Big Daddy wrote:
I have an ASP.NET application where the user will be right in the
middle of doing something and the sessions ends and then it blows up
because I have stored some things in the Session hashtable. I know
it's not ending because of the usual culprits (timeout, web.config file
changing, anti-virus software scanning the dll, etc.). So I am
wondering if there is a way to ask IIS why the session ended. It could
be programmatically or it could be manually looking in an IIS log
somewhere or anything else. thanks in advance.


Are you on IIS 5 or IIS 6? (Windows XP or Windows 2003 Server?)

On the Server version, there is a setting which automatically recycles
the working process periodically, and IIRC when the memory gets full. I
don't have a copy here, but check IIS' help for more information.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
May 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Darrin J Olson | last post by:
I am trying to end a session for a site without having to completely close the browser to end it. When I access the site and log in it works fine. If I log out and in with a different account...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
5
by: news.microsoft.com | last post by:
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I...
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
4
by: Hugo Flores | last post by:
Hi all, I noticed that there are three methods that can remove session variables Session.Clear() Session.RemoveAll() Session.Abandon() Now my question as is stated on the subject, what is...
2
by: Donald Scott | last post by:
We are having a problem with sessions ending sooner then they should. We have a two server web garden, both servers have identical machine keys. I'm storing session state in Sql Server. Sessions...
10
by: stathisgotsis | last post by:
Hello everyone, I am having a brain fart or something, why won't this work? test.php: <?php session_start(); $_SESSION='test'; header("Location: test2.php"); exit();
6
by: javelin | last post by:
In ASP classic pages, I want to know if it's possible to prevent session variables from becoming zero length strings? I have tried setting the Session.Timeout to a large value, but alwas, after 20...
2
by: Polaris | last post by:
Hi Experts: In ASP.Net, is there a class/function for ending a session? Will this function invoke Session_End (in the Global class)? Thanks in advance! Polaris
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.