CoverYourASP --> Snippets

Free membership

Join in the fun! Sign in
Member Services

Site navigation
Download the entire site!
Search my articles
Free Magazines
Browse the directory

Send me feedback
Buy my boxer shorts

Recommend this page
Printer-friendly page

Resources I recommend
Link to my site
Advertising slashed!
About your privacy
Legal stuff
Site statistics
28 active users
1430 visitors today
1268 pages today
(only part of today)
Tools I use

CoverYourASP
Copyright © 1999-2016 James Shaw.
All rights reserved.

ASP.NET Blog
RSS submissions
E-commerce

Now open source with SourceForge!

"Snippets" are mini-articles - they allow me to very quickly add answers to your frequently asked questions, and add brief explanations for topics that you've searched for without success. So, everytime you send an email or perform a search, chances are a new snippet will be the result!

27 Oct: Don't misunderstand Session.Abandon...

Mohamed Maza pointed out: "I have tried the active users example: the users counter is incremented correctly, but then when i call Session.Abandon(); the counter is not decremented"

This is a subtle effect. Calling Session.Abandon only queues the session for deletion, then waits until the current page is complete. So calling Abandon on a page has no effect during that page. Moving to another page of course kills that session, then immediately starts another, so the user count stays the same.

Although the active users stays the same, you will see the "Users today" increment though.

Featured sponsor
My favorite resources


I share my content

Supporting ASPRSS

Do you need a quick and easy way to link to my articles? All the information you need is published with ASPRSS...


See my source code
wherever you see this icon...

You can also download the entire site source code for FREE!