473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.RemoveAll 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 2443
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*******@cybergeneration.com> wrote in message
news:33LZc.87218$X12.18267@edtnps84...

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.RemoveAll 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*******@cybergeneration.com> wrote in message
news:33LZc.87218$X12.18267@edtnps84...

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.RemoveAll 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
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...
3
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...
5
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...
2
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...
12
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...
6
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...
13
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,...
3
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...
21
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.