Re: URGENT: please help ASP.NET Forms authentication and recycling of application pool

From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 05/24/05

  • Next message: Thammarat Charoenchai.: "Folder Authorization."
    Date: Wed, 25 May 2005 00:26:12 +1000
    
    

    Additionally, you should determine what's causing the Application pool
    recycles. A web app pool should not be recycling every 20 minutes (or less).

    Cheers
    Ken

    -- 
    Blog: www.adopenstatic.com/cs/blogs/ken/
    Web: www.adopenstatic.com
    "Dominick Baier [DevelopMentor]" <dbaier@pleasepleasenospamdevelop.com> 
    wrote in message news:406653632522641702442465@news.microsoft.com...
    : Hello anjinho,
    :
    : Context.User is rehydrated on every request and does not rely on something
    : store InProc.
    :
    : A quick way of mitigating the recycling problem is to use the StateServer
    : - change web.config to StateServer and enabled the local ASP.NET 
    StateServer
    : service in computer manager.
    :
    : ---------------------------------------
    : Dominick Baier - DevelopMentor
    : http://www.leastprivilege.com
    :
    : > Hello
    : >
    : > Now and then while using a webapp written in asp.net I lose my
    : > variables stored in sessions variables.
    : > I lose them before the time out of 20minutes is over. Sometimes just
    : > after a few minutes.
    : > I think this is because of the application pool that gets recycled.
    : >
    : > The webconfig is configured to inproc <sessionState mode="InProc" ....
    : >
    : > Now my question is:
    : > When I rewrite my application and start using forms authentication
    : > will
    : > I lose my logged in userid that is stored within
    : > HttpContext.Current.User.Identity.name?
    : > Or is it always sent (within a cookie) to the website and when the
    : > application is recycled it is rebuild so I never lose it within the
    : > specified time out?
    : >
    : > I just want a solution so I don't lose my userid.
    : >
    : > And I can't use basic authentication or windows authentication because
    : > the site is hosted for me and it doesn't have an ADS.
    : >
    : > Thanks in advance
    : >
    : > Andrew
    : >
    : > --
    : > anjinho
    : > ----------------------------------------------------------------------
    : > --
    : > Posted via http://www.codecomments.com
    : > ----------------------------------------------------------------------
    : > --
    :
    :
    : 
    

  • Next message: Thammarat Charoenchai.: "Folder Authorization."

    Relevant Pages

    • Re: Where are those messages before the number of received message
      ... I think the problem is with recycling application pool. ... so normally you keep the batch size low. ... the engine transfer them to BizTalk store? ...
      (microsoft.public.biztalk.general)
    • Re: OT damn pool rules
      ... mile and I have to put up a pool fence and have a building permit before ... Our recycling "rules" all say that you have to wash out all the containers before you put them in the bins. ... The trash is collected by an outside company that is paid by the city to haul it away. ...
      (alt.support.stop-smoking)
    • Re: w3wp.exe memory problem
      ... I hope you mean you are "recycling Application Pools" when you say "IIS ... memory won't be consumed -- so it is your application that is causing the ... Set this Application Pool to ONLY have private bytes memory-based ...
      (microsoft.public.inetserver.iis)
    • Re: Invalid Veiwstate
      ... Request URL:http://coderview/codeview.aspx ... Exception message: Invalid viewstate. ... "Application Pool Recycling ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Slow Response for ASP.NET page
      ... the application pool level. ... application went down any session state was lost. ... On the Recycling tab, ... That causes the JITted assemblies to unload ...
      (microsoft.public.dotnet.framework.aspnet)