Session lasting too long -- Session_End event firing way late !! ??

Discussion in 'ASP .Net' started by Steve M, Jul 28, 2003.

  1. Steve M

    Steve M Guest

    Why are my sessions lasting so long?
    I have them set to 20 minute timeout in config file?
    The Session_End event is getting called an hour or more sometimes--well
    after the user has stopped interacting with my site.
    Anyone have any insight?
    Thanks in advance
     
    Steve M, Jul 28, 2003
    #1
    1. Advertising

  2. Steve M

    Scott M. Guest

    Does the machine.config file have a setting that is overriding your
    web.config file?


    "Steve M" <> wrote in message
    news:T2dVa.56263$-kc.rr.com...
    > Why are my sessions lasting so long?
    > I have them set to 20 minute timeout in config file?
    > The Session_End event is getting called an hour or more sometimes--well
    > after the user has stopped interacting with my site.
    > Anyone have any insight?
    > Thanks in advance
    >
    >
     
    Scott M., Jul 29, 2003
    #2
    1. Advertising

  3. Steve M

    Steve M Guest

    > Does the machine.config file have a setting that is overriding your
    > web.config file?



    No.
    I recopied the project and now it is again working as expected -- however, I
    don't have any idea what caused the problem.
    I think that the Session_End is called from a background thread, which has a
    lower priority--but it makes little sense that most of the sessions were
    lasting on the order of an hour longer than expected.
    Is there anything that could cause this?
     
    Steve M, Jul 29, 2003
    #3
  4. Hello Steve,

    I am not sure of what happened without having the solid repro steps. Maybe there is something wrong in the system at then.
    Under that situation, try to restart your web application by changing some code in global.asax or etc. That forces the web
    app reloaded by asp.net and may resolve the problem.

    If you could reproduce this problem next time, please post here with more information. We are glad to be of assistance.
    Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Steve M" <>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !References: <T2dVa.56263$-kc.rr.com> <#>
    !Subject: Re: Session lasting too long -- Session_End event firing way late !! ??
    !Lines: 13
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    !Message-ID: <gTkVa.42880$-kc.rr.com>
    !Date: Tue, 29 Jul 2003 02:22:04 GMT
    !NNTP-Posting-Host: 65.28.105.11
    !X-Complaints-To:
    !X-Trace: twister.rdc-kc.rr.com 1059445324 65.28.105.11 (Mon, 28 Jul 2003 21:22:04 CDT)
    !NNTP-Posting-Date: Mon, 28 Jul 2003 21:22:04 CDT
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!
    newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cyclone2.kc.rr.com!
    news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:162840
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !> Does the machine.config file have a setting that is overriding your
    !> web.config file?
    !
    !
    !No.
    !I recopied the project and now it is again working as expected -- however, I
    !don't have any idea what caused the problem.
    !I think that the Session_End is called from a background thread, which has a
    !lower priority--but it makes little sense that most of the sessions were
    !lasting on the order of an hour longer than expected.
    !Is there anything that could cause this?
    !
    !
    !
     
    Yan-Hong Huang[MSFT], Jul 29, 2003
    #4
  5. Steve M

    Steve M Guest

    Unfortunately, it has shown up again!!
    Is there anything in particular that COULD cause this problem?
    What MIGHT cause Session_End to be called about an hour LATER than the
    Session Timeout value?
    Thanks again.


    "Yan-Hong Huang[MSFT]" <> wrote in message
    news:EemB%...
    > Hello Steve,
    >
    > I am not sure of what happened without having the solid repro steps. Maybe

    there is something wrong in the system at then.
    > Under that situation, try to restart your web application by changing some

    code in global.asax or etc. That forces the web
    > app reloaded by asp.net and may resolve the problem.
    >
    > If you could reproduce this problem next time, please post here with more

    information. We are glad to be of assistance.
    > Thanks very much.
    >
    > Best regards,
    > Yanhong Huang
    > Microsoft Online Partner Support
    >
    > Get Secure! - www.microsoft.com/security
    > This posting is provided "AS IS" with no warranties, and confers no

    rights.
    >
    > --------------------
    > !From: "Steve M" <>
    > !Newsgroups: microsoft.public.dotnet.framework.aspnet
    > !References: <T2dVa.56263$-kc.rr.com>

    <#>
    > !Subject: Re: Session lasting too long -- Session_End event firing way

    late !! ??
    > !Lines: 13
    > !X-Priority: 3
    > !X-MSMail-Priority: Normal
    > !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    > !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    > !Message-ID: <gTkVa.42880$-kc.rr.com>
    > !Date: Tue, 29 Jul 2003 02:22:04 GMT
    > !NNTP-Posting-Host: 65.28.105.11
    > !X-Complaints-To:
    > !X-Trace: twister.rdc-kc.rr.com 1059445324 65.28.105.11 (Mon, 28 Jul 2003

    21:22:04 CDT)
    > !NNTP-Posting-Date: Mon, 28 Jul 2003 21:22:04 CDT
    > !Path:

    cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
    e.de!npeer.de.kpn-eurorings.net!
    >

    newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclon
    e.socal.rr.com!cyclone2.kc.rr.com!
    > news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
    > !Xref: cpmsftngxa06.phx.gbl

    microsoft.public.dotnet.framework.aspnet:162840
    > !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    > !
    > !> Does the machine.config file have a setting that is overriding your
    > !> web.config file?
    > !
    > !
    > !No.
    > !I recopied the project and now it is again working as expected --

    however, I
    > !don't have any idea what caused the problem.
    > !I think that the Session_End is called from a background thread, which

    has a
    > !lower priority--but it makes little sense that most of the sessions were
    > !lasting on the order of an hour longer than expected.
    > !Is there anything that could cause this?
    > !
    > !
    > !
    >
    >
     
    Steve M, Jul 29, 2003
    #5
  6. Hello Steve,

    Did it happened after some time repeatly? I suggest you install the latest framework and reinstall asp.net to see if the
    problem could be resolved.

    Thanks.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Steve M" <>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !References: <T2dVa.56263$-kc.rr.com> <#>
    <gTkVa.42880$-kc.rr.com> <EemB#>
    !Subject: Re: Session lasting too long -- Session_End event firing way late !! ??
    !Lines: 79
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    !Message-ID: <BnyVa.43610$-kc.rr.com>
    !Date: Tue, 29 Jul 2003 17:44:01 GMT
    !NNTP-Posting-Host: 65.28.105.11
    !X-Complaints-To:
    !X-Trace: twister.rdc-kc.rr.com 1059500641 65.28.105.11 (Tue, 29 Jul 2003 12:44:01 CDT)
    !NNTP-Posting-Date: Tue, 29 Jul 2003 12:44:01 CDT
    !Organization: RoadRunner
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!
    news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!
    cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163062
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !Unfortunately, it has shown up again!!
    !Is there anything in particular that COULD cause this problem?
    !What MIGHT cause Session_End to be called about an hour LATER than the
    !Session Timeout value?
    !Thanks again.
    !
    !
    !"Yan-Hong Huang[MSFT]" <> wrote in message
    !news:EemB%...
    !> Hello Steve,
    !>
    !> I am not sure of what happened without having the solid repro steps. Maybe
    !there is something wrong in the system at then.
    !> Under that situation, try to restart your web application by changing some
    !code in global.asax or etc. That forces the web
    !> app reloaded by asp.net and may resolve the problem.
    !>
    !> If you could reproduce this problem next time, please post here with more
    !information. We are glad to be of assistance.
    !> Thanks very much.
    !>
    !> Best regards,
    !> Yanhong Huang
    !> Microsoft Online Partner Support
    !>
    !> Get Secure! - www.microsoft.com/security
    !> This posting is provided "AS IS" with no warranties, and confers no
    !rights.
    !>
    !> --------------------
    !> !From: "Steve M" <>
    !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !> !References: <T2dVa.56263$-kc.rr.com>
    !<#>
    !> !Subject: Re: Session lasting too long -- Session_End event firing way
    !late !! ??
    !> !Lines: 13
    !> !X-Priority: 3
    !> !X-MSMail-Priority: Normal
    !> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    !> !Message-ID: <gTkVa.42880$-kc.rr.com>
    !> !Date: Tue, 29 Jul 2003 02:22:04 GMT
    !> !NNTP-Posting-Host: 65.28.105.11
    !> !X-Complaints-To:
    !> !X-Trace: twister.rdc-kc.rr.com 1059445324 65.28.105.11 (Mon, 28 Jul 2003
    !21:22:04 CDT)
    !> !NNTP-Posting-Date: Mon, 28 Jul 2003 21:22:04 CDT
    !> !Path:
    !cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
    !e.de!npeer.de.kpn-eurorings.net!
    !>
    !newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclon
    !e.socal.rr.com!cyclone2.kc.rr.com!
    !> news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
    !> !Xref: cpmsftngxa06.phx.gbl
    !microsoft.public.dotnet.framework.aspnet:162840
    !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !> !
    !> !> Does the machine.config file have a setting that is overriding your
    !> !> web.config file?
    !> !
    !> !
    !> !No.
    !> !I recopied the project and now it is again working as expected --
    !however, I
    !> !don't have any idea what caused the problem.
    !> !I think that the Session_End is called from a background thread, which
    !has a
    !> !lower priority--but it makes little sense that most of the sessions were
    !> !lasting on the order of an hour longer than expected.
    !> !Is there anything that could cause this?
    !> !
    !> !
    !> !
    !>
    !>
    !
    !
    !
     
    Yan-Hong Huang[MSFT], Jul 31, 2003
    #6
    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. Jeremy

    Session_End Event Always Firing

    Jeremy, Dec 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    494
    Kevin Spencer
    Dec 3, 2005
  2. Andy Leszczynski
    Replies:
    4
    Views:
    578
    Andy Leszczynski
    Mar 14, 2005
  3. Replies:
    0
    Views:
    587
  4. Replies:
    0
    Views:
    597
  5. Mantas Miliukas

    Time out problems for long lasting actions

    Mantas Miliukas, Mar 9, 2005, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    130
    Mantas Miliukas
    Mar 9, 2005
Loading...

Share This Page