Sessions

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2003, 23:18
vor vor is offline
Junior Member
Join Date: Aug 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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.

  #2 (permalink)  
Old Aug 16th, 2003, 07:56
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
  #3 (permalink)  
Old Aug 16th, 2003, 21:26
vor vor is offline
Junior Member
Join Date: Aug 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #4 (permalink)  
Old Aug 19th, 2003, 20:10
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
Closed Thread

Tags
sessions

« - | VisualStudio.NET »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 06:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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