SessionState Mode=SQLServer and Session.Abandon

Discussion in 'ASP .Net' started by Guest, Sep 20, 2006.

  1. Guest

    Guest Guest

    I am trying out SessionState with Mode=SQLServer. I have my
    code run Session.Abandon, but the session entry in the table
    ASPStateTempSessions is still there? I was expecting that Session.Abandon
    would remove the Session from the table. Is their a different method I
    should use
    to remove the Session table entry? Is the only way the session will be
    removed from the table, is when the session Expires? I notice that there is a
    SQL job
    that deletes expired sessions, but would it not be better if this entry is
    removed
    immediately on logout?

    Thank you

    Ed
     
    Guest, Sep 20, 2006
    #1
    1. Advertisements

  2. you are correct, the sql job is the only deleter.

    -- bruce (sqlwork.com)
     
    bruce barker \(sqlwork.com\), Sep 20, 2006
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.