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

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

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

    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 Guest

  2. Similar Questions and Discussions

    1. Question about a long session timeout (somewhat long)
      I've been told by my developers to increase the asp.net session timeout to 72 hours. Being a server guy, it concerns me because of the obvious...
    2. Time out problems for long lasting actions
      Hi, I have developed a webserver control that executes some business logic on the server side. The problem is that the logic takes some time...
    3. Problem with DataBind Late in Event?
      In my Page_Load, I check for IsPostBack and fetch some data and bind ASP.NET page template textboxes to some columns. I also show a DataGrid on...
    4. Session_End Not Firing
      Hey guys I have a user tracking setup to track users. What it does is once a user hits my site it sends me an email telling me some info and once a...
    5. Printers that produce long lasting prints...
      Louise, did you look at the comparision charts on the Epson website? I believe there's data there on many (most?) of the Epson printers... Chuck
  3. #2

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

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


    "Steve M" <steve@nospam.com> wrote in message
    news:T2dVa.56263$6a3.1103664@twister.rdc-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. Guest

  4. #3

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

    > 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 Guest

  5. #4

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

    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! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Steve M" <steve@nospam.com>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !References: <T2dVa.56263$6a3.1103664@twister.rdc-kc.rr.com> <#84LNmWVDHA.1280@tk2msftngp13.phx.gbl>
    !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$o27.934363@twister.rdc-kc.rr.com>
    !Date: Tue, 29 Jul 2003 02:22:04 GMT
    !NNTP-Posting-Host: 65.28.105.11
    !X-Complaints-To: [email]abuse@rr.com[/email]
    !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!newsfeed 00.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!cy clone2.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] Guest

  6. #5

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

    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]" <yhhuang@online.microsoft.com> wrote in message
    news:EemB%23zaVDHA.2124@cpmsftngxa06.phx.gbl...
    > 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! - [url]www.microsoft.com/security[/url]
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >
    > --------------------
    > !From: "Steve M" <steve@nospam.com>
    > !Newsgroups: microsoft.public.dotnet.framework.aspnet
    > !References: <T2dVa.56263$6a3.1103664@twister.rdc-kc.rr.com>
    <#84LNmWVDHA.1280@tk2msftngp13.phx.gbl>
    > !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$o27.934363@twister.rdc-kc.rr.com>
    > !Date: Tue, 29 Jul 2003 02:22:04 GMT
    > !NNTP-Posting-Host: 65.28.105.11
    > !X-Complaints-To: [email]abuse@rr.com[/email]
    > !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!newsfeed 00.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 Guest

  7. #6

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

    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! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Steve M" <steve@nospam.com>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !References: <T2dVa.56263$6a3.1103664@twister.rdc-kc.rr.com> <#84LNmWVDHA.1280@tk2msftngp13.phx.gbl>
    <gTkVa.42880$o27.934363@twister.rdc-kc.rr.com> <EemB#zaVDHA.2124@cpmsftngxa06.phx.gbl>
    !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$7O4.974192@twister.rdc-kc.rr.com>
    !Date: Tue, 29 Jul 2003 17:44:01 GMT
    !NNTP-Posting-Host: 65.28.105.11
    !X-Complaints-To: [email]abuse@rr.com[/email]
    !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!newsfeed 00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!
    news.tele.dk!news.tele.dk!small.news.tele.dk!newsf eed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!
    cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.r r.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]" <yhhuang@online.microsoft.com> wrote in message
    !news:EemB%23zaVDHA.2124@cpmsftngxa06.phx.gbl...
    !> 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! - [url]www.microsoft.com/security[/url]
    !> This posting is provided "AS IS" with no warranties, and confers no
    !rights.
    !>
    !> --------------------
    !> !From: "Steve M" <steve@nospam.com>
    !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !> !References: <T2dVa.56263$6a3.1103664@twister.rdc-kc.rr.com>
    !<#84LNmWVDHA.1280@tk2msftngp13.phx.gbl>
    !> !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$o27.934363@twister.rdc-kc.rr.com>
    !> !Date: Tue, 29 Jul 2003 02:22:04 GMT
    !> !NNTP-Posting-Host: 65.28.105.11
    !> !X-Complaints-To: [email]abuse@rr.com[/email]
    !> !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!newsfee d00.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] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139