Stories recently tagged with 'Session'

Wrap Your Name Value Variables(sitepoint.com)

submitted by wwb_99wwb_99(870) 5 years, 3 months ago

ASP.NET gives a developer a lot of loosely typed key-value collections in which to stash stash variables, depending upon persistence needs. The short list includes ViewState, Session, Application and HttpContext.Items. These collections can come in very handy when one needs to keep an object around outside of a single request or shuttle things between different bits of the http pipeline. But it comes at a price—these collections are loosely typed, just returning Objects. Moreover, there is no compile-time checking to ensure that you are requesting the right key in the right place. Errors can lead to crashes at best, and interesting data corruption at worst. Here is a handy technique to avoid such issues. read more...

1 comment |category: |Views: 6

tags: another

.NET slave - Remove unused objects from the session(madskristensen.dk)

submitted by javierRomerojavierRomero(1010) 5 years, 6 months ago

The Session in ASP.NET is a very simple way of storing user specific data for the duration of a single user session. I’ve many times added data to the Session that had an even shorter lifespan. That could be as a data store for properties on AJAX enabled web pages and those properties don’t belong in the session after the visitor navigates to another page on my website. To clean up, I would then delete those session objects that no longer is in use. read more...

add a comment |category: |Views: 13

tags: another

Strongly typed Session object(mikeoff.blogspot.com)

submitted by mikeonmikeon(5200) 5 years, 11 months ago

A short article describing a pattern of providing a strongly typed access to a Session object. read more...

add a comment |category: |Views: 71

tags: another

Strongly typed Session object(mikeoff.blogspot.com)

submitted by mikeonmikeon(5200) 5 years, 11 months ago

A short article describing a pattern of providing a strongly typed access to a Session object. read more...

add a comment |category: |Views: 71

tags: another