Re: problem with expired session

dl
Date: 06/16/05

  • Next message: Viorel Ghilas: "PrincipalPermission trouble"
    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
    > >
    > > --
    > >
    > >
    > >
    >
    >


  • Next message: Viorel Ghilas: "PrincipalPermission trouble"

    Relevant Pages

    • Re: Application Pool timouts.
      ... a) From what i understand, the application pool timeout is the timeout for ... an idle session which is created by a browser. ... is idle for 20 minutes or longer the problems occur. ... Application Pool's w3wp.exe process to be shutdown by IIS when no requests ...
      (microsoft.public.inetserver.iis.security)
    • Re: How do I change the session timeout?
      ... A session will last for as long a period as you set in ... That's set in the forms timeout property. ... You will see that the logged-in period changes to match the number of minutes you specify. ... Microsoft MSDN Online Support Lead ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: SQLCommandTimeout
      ... to set the value for the session? ... designer) you can set the Command Timeout value there. ... I am just using the DataSource, configured to use my stored procedure, ... I found out about the SQLCommandTimeout Property that can be used to ...
      (microsoft.public.dotnet.general)
    • RE: Remote webspace logging off.
      ... their session after a certain amount of time. ... Please check the following settings: ... Restart the IIS Service or restart the SBS Server. ... Remote Web Workplace timeout: ...
      (microsoft.public.windows.server.sbs)
    • Re: How do I change the session timeout?
      ... Ok, it might not IIS itself, but ASP.NET, that runs in the IIS environment, that does that. ... Prove that my sample code isn't valid by supplying us with code which proves you're right. ... What you are demonstrating is that the timeout is occuring at one minute ... When the application starts at the same time as the session, as in your test, it doesn't prove ...
      (microsoft.public.dotnet.framework.aspnet)