Re: Checking for state's existence

Per Bolmstedt <[email protected]> Mon, 21 Apr 2008 09:54:58 -0400
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <LISTSERV%[email protected]>
On Mon, 21 Apr 2008 06:34:10 -0700, Mark Aurit <[email protected]> wrote:

> Where is the best place to test in asp.net apps that values placed in
> state still exist (the person walking away from their browser after
> logging in thing)?

What exactly are you checking, and why? The "session" is normally handled
automatically by ASP.NET, and anything you add to the "session state" will
stay there until the session itself is torn down because of (for example) a
session timeout (person walks away for 20 minutes). You rarely need to check
explicitly for the "existence of a session" - if the session has expired,
the user will no longer be able to access restricted pages, for example.
(All this, of course, assumes you're using ASP.NET to manage session, state,
security, etc.)

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com