session object: simple question

From: Nikhil Patel (nikhil0100_at_aol.com)
Date: 08/31/04


Date: Tue, 31 Aug 2004 10:20:26 -0400

Hi all,
   I am using a Session object in my ASP.Net application to store a value of
a Database field. I can access it as ...
    int iProposalId = Session["ProposalId"];

The session timeout is set to 20. Now my question is if the session expires,
would the above statement produce any exception? If I can't find the
ProposalId value in the session object, I would like to display a message to
the user and close the window.

Thanks.
-Nikhil



Relevant Pages