× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You need to persist session state somewhere. You can store it "in proc"
but if IIS resets, or the worker process cycles it's lost. You can store
it "out of proc" in the ASP.Net state server, you're at least protected
from IIS/WP restarts, but if the State Server resets again it's lost. Or
you can store it in a database. What you're referring to isn't event
"true" ASP.Net session state, you've rolled your own. We did a similar
thing and we have no regrets.

The IO for the session lookup is low, just leave it where it is. What's
the DB involved? And how are you accessing it? If you're using SQL to
look it up just combine the expiration check w/the lookup; then your
only check if whether a row is found in the first place, if it does
you're good, if it doesn't it's either a bad session id, or it's
expired, and you don't care which. This will actually reduce IO as you
can probably answer that query from an index and avoid the lookup in the
underlying table.

-Walden



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.