Session_End Never execute

  • Thread starter Thread starter L.J.SONG
  • Start date Start date
L

L.J.SONG

Hi guys.
After more than 1 year's experenice of asp.net...
I never found Session_end event had been triggerd in my projects.
Who can tell me why?
Thanks
 
Do you use out-of-process session state modes (StateServer or SQLServer)?
Session_End is raised only in InProc mode.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

Hi guys.
After more than 1 year's experenice of asp.net...
I never found Session_end event had been triggerd in my projects.
Who can tell me why?
Thanks
 
Thank your reply.....

No I always use "InProc" SessionState,infact I had tried every
SessionMode,but ,I never found that Session_End triggered,NEVER....Hmmmm.
I had tried to write a message to log file in "Session_end",but whenever I
use Session.Abandon or set the Session.Timeout=1,
still to now,there is not a letter in my log file.
 
What version of IIS are you using?
Are you impersonating a Windows user account in application?

Cheers
Ken

: Thank your reply.....
:
: No I always use "InProc" SessionState,infact I had tried every
: SessionMode,but ,I never found that Session_End triggered,NEVER....Hmmmm.
: I had tried to write a message to log file in "Session_end",but whenever I
: use Session.Abandon or set the Session.Timeout=1,
: still to now,there is not a letter in my log file.
:
:
:
: "Teemu Keiski" <joteke@aspalliance.com> дÈëÓʼþ
: : > Do you use out-of-process session state modes (StateServer or
SQLServer)?
: > Session_End is raised only in InProc mode.
: >
: > --
: > Teemu Keiski
: > MCP, Microsoft MVP (ASP.NET), AspInsiders member
: > ASP.NET Forum Moderator, AspAlliance Columnist
: >
: > : > Hi guys.
: > After more than 1 year's experenice of asp.net...
: > I never found Session_end event had been triggerd in my projects.
: > Who can tell me why?
: > Thanks
: >
: >
: >
: >
:
:
 
Can you continue the thought about impersonnating and the length of a
session? Is there something there that would cause it to not time out
- or time out differently?
 
Yeah,I'm not sure is there anything which cause my session not timeout,
but ths Session_end should be trigger when I call Session.Abandon.I
think,but when I call Session.Abandon,the Session seems to be restart and
triggered the Session_Start,but not Session_End.
It's very strangly.
Any Comment?
thanks
 
thanks

I USE IIS5.0 WIN2K Adavance server sp4,I think I never used
impersonating in my app,and in my web.config there is not a item about
impersonating.
 
Back
Top