Sessions emptied

Discussion in 'ASP General' started by Maxime Ducharme, Sep 2, 2004.

  1. 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
    Maxime Ducharme, Sep 2, 2004
    #1
    1. Advertising

  2. Aaron [SQL Server MVP], Sep 2, 2004
    #2
    1. Advertising

  3. Maxime Ducharme

    Jeff Dillon Guest

    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" <> 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
    >
    >
    Jeff Dillon, Sep 2, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shankar Reddy
    Replies:
    0
    Views:
    408
    Shankar Reddy
    Aug 23, 2004
  2. Shankar Reddy
    Replies:
    4
    Views:
    470
    Shankar Reddy
    Sep 2, 2004
  3. Ken Cox [Microsoft MVP]

    Re: Relationship between IIS Sessions and ASP.NET Sessions?

    Ken Cox [Microsoft MVP], Aug 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,343
    Luther Miller
    Aug 8, 2003
  4. scottymo
    Replies:
    3
    Views:
    674
    Dominick Baier
    Sep 30, 2006
  5. Bookham Measures

    Moving from ASP Sessions to Database Sessions

    Bookham Measures, Jul 23, 2007, in forum: ASP General
    Replies:
    19
    Views:
    541
    Bookham Measures
    Aug 23, 2007
Loading...

Share This Page