Thursday, January 29, 2004

.Net Bytes 1 - ASP.Net Session.Abandon

Every other day one comes across interesting tit-bits of .Net which one can so easily forget or ignore and which one shouldn't.
I think .Net Bytes is what I would call them. So here goes...
-------------------------------------
ASP.Net Session.Abandon
-------------------------------------

When the Abandon method is called, the current Session object is queued for deletion but is not actually deleted until all of the script commands on the current page have been processed. This means that you can access variables stored in the Session object on the same page as the call to the Abandon method but not in any subsequent Web pages.

It is interesting how the session.Abandon command works, this often leaves many a programmer wondering why session variables on the page are accessible even though a call has been made to abandon the session.

Well I think now you get the picture... if you've got any .Net Bytes (bites ;-) to share let me know. You can email me at sanjayATwirelessstrategist.com (hmm you're wondering why I didn't put this as @ right, to avoid the spammers ;-)