Re: session object: simple question
From: Curt_C [MVP] (software_AT_darkfalz.com)
Date: 08/31/04
- Next message: Shiva: "Re: session object: simple question"
- Previous message: Scott Allen: "Re: Find Control in a nested DataGrid"
- In reply to: Nikhil Patel: "session object: simple question"
- Next in thread: Shiva: "Re: session object: simple question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 31 Aug 2004 09:31:03 -0500
Are you using any authentication? If you are then have that redirect to the
login page if it's expired, that's what it's designed for. If you aren't
just run a check
if(Session["blah"] is null)
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com "Nikhil Patel" <nikhil0100@aol.com> wrote in message news:uObhIV2jEHA.2948@TK2MSFTNGP11.phx.gbl... > 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 > >
- Next message: Shiva: "Re: session object: simple question"
- Previous message: Scott Allen: "Re: Find Control in a nested DataGrid"
- In reply to: Nikhil Patel: "session object: simple question"
- Next in thread: Shiva: "Re: session object: simple question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|