473,785 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sessions emptied


Hi group

We have a problem with sessions in one of our sites.
Sessions are used to store login info & some other infos
(no objects are stored in sessions).

We are using Windows 2000 Server (IIS 5.0) with
ASP 3.0 (no .NET on this site).

Sometime, data in session is emptied. I say "sometime"
since the problem does not happen frequently and not
always at the same time. We are unable to reproduce
the problem manually.

I looked in all ASP code and the only Session.Abandon
or Sessions.Remove All are in 1 page, the page used to
"log out" of our site.

I created a global.asa with code that logs SessionStart
and SessionEnd in a SQL database, so I can monitor
Sessions creation and deletion.

In this table i log :
- time
- session ID
- IP
- action ("Start" or "End")

When the problem occurs, I show session ID and content
on the screen. All content is empty, but the ID is ok.

i can see in the logs that the session is still alive
(there is no SessionEnd corresponding to the ID, i see
it when the session timeout expires)

I can also monitor number of sessions via performance
monitor (we have about 15 active users), so I can easily
correlate logs & number of active sessions.

I'd need help to monitor sessions further, someone have
a suggestion ?

Any other ideas on what could cause problem to sessions ?

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau
Jul 19 '05 #1
3 2480
Are you sure it's not just a normal session timeout (default 20 minutes,
iIrc). There will always be a session ID when you look at the sessions, but
it'll be a brand new one if the session has since timed out.

Also, if you have any applications defined in your subdirectories in your
site, you will not see session data there, as sessions are
application-specific.

Ray at work

"Maxime Ducharme" <md*******@cybe rgeneration.com > wrote in message
news:33LZc.8721 8$X12.18267@edt nps84...

Hi group

We have a problem with sessions in one of our sites.
Sessions are used to store login info & some other infos
(no objects are stored in sessions).

We are using Windows 2000 Server (IIS 5.0) with
ASP 3.0 (no .NET on this site).

Sometime, data in session is emptied. I say "sometime"
since the problem does not happen frequently and not
always at the same time. We are unable to reproduce
the problem manually.

I looked in all ASP code and the only Session.Abandon
or Sessions.Remove All are in 1 page, the page used to
"log out" of our site.

I created a global.asa with code that logs SessionStart
and SessionEnd in a SQL database, so I can monitor
Sessions creation and deletion.

In this table i log :
- time
- session ID
- IP
- action ("Start" or "End")

When the problem occurs, I show session ID and content
on the screen. All content is empty, but the ID is ok.

i can see in the logs that the session is still alive
(there is no SessionEnd corresponding to the ID, i see
it when the session timeout expires)

I can also monitor number of sessions via performance
monitor (we have about 15 active users), so I can easily
correlate logs & number of active sessions.

I'd need help to monitor sessions further, someone have
a suggestion ?

Any other ideas on what could cause problem to sessions ?

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau

Jul 19 '05 #2
> Any other ideas on what could cause problem to sessions ?

http://www.aspfaq.com/2157

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #3
We had a similar problem. In our case (Windows2003 Server), we had a 3rd
party dll that our application used (aspimage.dll) that crashed w3wp.exe,
which quickly restarted each time automatically (2-3 times a day at random
times), which emptied all current sessions. Check the Event Log for
suspicious entries.

Jeff

"Maxime Ducharme" <md*******@cybe rgeneration.com > wrote in message
news:33LZc.8721 8$X12.18267@edt nps84...

Hi group

We have a problem with sessions in one of our sites.
Sessions are used to store login info & some other infos
(no objects are stored in sessions).

We are using Windows 2000 Server (IIS 5.0) with
ASP 3.0 (no .NET on this site).

Sometime, data in session is emptied. I say "sometime"
since the problem does not happen frequently and not
always at the same time. We are unable to reproduce
the problem manually.

I looked in all ASP code and the only Session.Abandon
or Sessions.Remove All are in 1 page, the page used to
"log out" of our site.

I created a global.asa with code that logs SessionStart
and SessionEnd in a SQL database, so I can monitor
Sessions creation and deletion.

In this table i log :
- time
- session ID
- IP
- action ("Start" or "End")

When the problem occurs, I show session ID and content
on the screen. All content is empty, but the ID is ok.

i can see in the logs that the session is still alive
(there is no SessionEnd corresponding to the ID, i see
it when the session timeout expires)

I can also monitor number of sessions via performance
monitor (we have about 15 active users), so I can easily
correlate logs & number of active sessions.

I'd need help to monitor sessions further, someone have
a suggestion ?

Any other ideas on what could cause problem to sessions ?

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau

Jul 19 '05 #4

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

Similar topics

13
12052
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or Konqueror on Linux) the session variables will mix up and only the latest selection or options will...
3
3722
by: Will Woodhull | last post by:
Hi, I'm new here-- I've been reading the group for a couple of days. Nice group; I like the way n00b33 questions are handled. I've been using a Javascript routine in index.html to determine a visitor's browser's capabilities. The Javascript then calls main.php, passing back its findings with a GET string; main.php saves the data as a visitor's profile in $_SESSION elements. It then serves up home.html and any further pages requested...
5
1311
by: John Baker | last post by:
Hi: I have set up a table, and a temporary copy of the table which I wish to use for some processing. I have found that using a query to empty the ORIGINAL table, the copy of the table gets emptied too. Both are in the same dfatabase and have different names. Can someone tell me how to breath that irritating link!
2
2970
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use cookieless sessions for a particular user, and if so, I'd instruct ASP.NET to turn on cookieless sessions for a particular user session. Is this possible? For example I want to use cookie based sessions by default for all users. But if a user has...
12
2295
by: D. Shane Fowlkes | last post by:
This is a repost (pasted below). Since my original post, I've double checked the system clock and set all IIS Session Timeout values to 10 minutes. Still ...the problem occurs. I've also installed Deep Metrix Live Stats 6.2 XPS just to make sure nothing really strange was going on was going on. Still....the sessions only increment...or should I say my counter in my asax file.... and never goes down. If it matters, this machine is...
6
3807
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory†exception. To get an idea what happens I traced some values using performance monitor and got the following values (for one day): \\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During Execution: 7 \\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
13
35981
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies, Database... However, I'm going to cover how to use Sessions. Sessions are used to store information in order to use it during later page requests or in other web pages in a web application. By default Cookies are used to identify which session...
3
28323
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every developer needs to know how to use. This article explains the basics of PHP Sessions. Assumptions: Basic PHP knowledge is required (variables, arrays and such) HTML Forms. What are Sessions? Sessions are a way of storing data. When developing...
21
3015
by: Lee | last post by:
Hi, I have a very specific problem that perhaps some of the smart people here can figure out. I have a site based on PHP with some Java applets on it. The session variables are being destroyed prematurely. We are running Apache2 with PHP 5. On the site, there is a PHP session variable that holds login information. If you go to any page on the site, the session variables remain intact... except the pages with Java applets. Every one...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10095
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9954
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 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...
0
8979
agi2029
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...
0
6741
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();...
0
5383
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...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3656
muto222
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.