Proplem with cookies

Discussion in 'ASP.NET / ASP.NET Core' started by belladaisy2018, Apr 16, 2018.

  1. I have 4 applications running on our account here (CommunityServer Forums, FlexWiki, Gemini, and .Text), and each time i log into them, i ask them to remember who i am, and they never do! These apps work fine on our dev servers here, but they don't seem to want to set cookies at all from your servers.

    My sessions also seem to expire quite rapidly. When i am posting to our blog, if i type for more than 5 minutes or so, i am prompted to login again (by both .Text and the forums).

    Before you ask - yes each of these apps will remember you via a cookie and i have tested it completely.

    Is there a setting in the control panel i can look at? There's nothing in the config files of these apps either.

    This is driving me nutso!

    Thanks
     
  2. martino

    martino DiscountASP.NET Staff

    Are you using InProc? If so you might want to look into using SQL Server Sessions instead. See our knowledge base article here: https://support.discountasp.net/kb/...l-server-session-on-your-web-application.aspx

    Your sessions will be lost if the application pool gets recycled.

    We host each website in its own unique application pool/process. To conserve memory, we recycle the application if any of the following conditions are met:

    1) More than 20 minutes of idle time (no http request in 20 minutes)
    2) The application uses more than 200 MB of memory on IIS 7, and 300 MB of memory on IIS 8.

    Regarding your cookie issue see this web page article here: https://www.codeproject.com/Questions/809035/how-to-check-if-browser-has-cookies-enabled-in-Csh
     

Share This Page