This is a discussion on "Sessions" within the ASP.NET Forum section. This forum, and the thread "Sessions are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Sessions
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Sessions
Just wanted to know if anyone has noticed that Session_OnEnd Event NEVER Triggers.
In asp classic, that event was pretty important to my "Guests/Members" Online Counter. I've thought about maybe just keep track of the session ID and the DateTime of their last action, but then I'd have to add code to Every Single Page on my site, which I dont think is worth it. If anyone has figured out a way to get the Event to trigger or a better solution, I'm all ears. i Recently upgrated to .net 1.1, and I really haven't checked if that problem has been fixed. I know a lot of people have complained about that event never working. This one has got me baffled for the last 2 months. Dont you just hate when you know something should work, but it doesn't. |
|
|
|
||||
|
Hi Vor....
The event fires very reliabaly if in your web.config file you have set session state mode to 'inProc'.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
hmmmm. Mode=inProc just tells where the Session Variable should be stored. In this case, Server Ram. But inProc is the default Setting for mode anyway unless you request otherwise. Thats why I never thought that was the problem.
I'll try to set it as inProc anyway just incase its just weird like that. I'll tell ya if it works. <blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote"> By default, session state is configured to be stored in-process. The process we're referring to is the aspnet_wp.exe worker process. In-process session management is fast and convenient, is appropriate for small to moderately sized amounts of data, and is configured by default in the machine.config file and your application's Web.config file. <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> http://www.informit.com/isapi/produc...t/articlex.asp |
|
||||
|
Hey Vor...
What were your results for this? Did you test the 'inProc' setting? I dunno why, but it has always been the most reliable method for me.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| sessions |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Little help on sessions? | ktsirig | PHP Forum | 0 | Mar 2nd, 2006 22:12 |
| Sessions | djme | PHP Forum | 4 | Feb 25th, 2006 12:10 |
| xsl, php sessions (please help) | marco_van_mayo | Other Programming Languages | 0 | Feb 19th, 2006 14:35 |
| php sessions | fragalot | PHP Forum | 7 | Nov 8th, 2005 20:43 |
| PHP Sessions | benbacardi | PHP Forum | 5 | Aug 28th, 2005 09:29 |