Re: problem with expired session
dl
Date: 06/16/05
- Previous message: CodeMeister: "Re: problem with expired session"
- In reply to: CodeMeister: "Re: problem with expired session"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: problem with expired session"
- Reply: Dominick Baier [DevelopMentor]: "Re: problem with expired session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 16 Jun 2005 08:54:37 +0800
But I am using form authentication! Is there any way to check if the session
of an authenticated user had expired / timeout?
TIA
"CodeMeister" <jwojtowicz@codemeister.net> wrote in message
news:%23jdE7$fcFHA.3940@TK2MSFTNGP10.phx.gbl...
> The seesion cookie will still be intact and that session Id will be added
as
> a new session. The original session will have been torn down by that time
> and any data stored will be lost.
>
> Typically to avoid the session timeout issue and other session issues you
> may want to query the data source on each request. By setting the page
index
> on the data grid it will bind to the correct records. Then it would not
> matter when the request is made.
>
> Another option would be to use SQL Server session state. That way you can
> set the timeout to some long period, like 8 hours, and not lose your
session
> state without oveloading the server.
>
> IHTH
>
> Jon
>
>
> <dl> wrote in message news:eiKZe0PcFHA.3400@tk2msftngp13.phx.gbl...
> > Hi
> > I have some data driven pages with a datagrid set to allow paging. This
> > is
> > working fine, the only problem is if a user left the browser at such
page,
> > and after the session expired the user click on the page number again,
> > this
> > will trigger a postback but some of the required session variable has
been
> > destroyed along with the cookie (I guess), then an error of "Null Object
> > reference" will be thrown!!
> >
> > What is the best way to prevent such error, please?!
> > Would it be enough to just check User.Identity.IsAuthenticated ?
> >
> > TIA
> >
> > --
> >
> >
> >
>
>
- Previous message: CodeMeister: "Re: problem with expired session"
- In reply to: CodeMeister: "Re: problem with expired session"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: problem with expired session"
- Reply: Dominick Baier [DevelopMentor]: "Re: problem with expired session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|