locked
Numerous anonymous profiles created for the same anonymous use, anonymous cookie changes about every 5 to 10 minutes RRS feed

  • Question

  • User-227910405 posted

    I am using this configuration setting

    "anonymousIdentification cookieTimeout="10000" enabled="true" cookieless="UseCookies"

    After I set the anonymous properties the anonymous cookie identifier keeps the same ID and allows me to access the same anonymous profile for about 5 to 10 minutes. After about 10 minutes asp.net creates a whole new anonymous profile and ID for the same anonymous user, So the same anonymous user is given a brand new anonymous profile about every 10 minutes. The old anonymous profiles Persist on the sql datasource but the problem is the anonymous user is being which to a brand new anonymous profile about every 10 minutes. how can I stop this from happening so that the anonymous use can maintain the same anonymous profile for the full 10000 minutes?

    Tuesday, January 15, 2013 12:14 PM

Answers

  • User-227910405 posted

    Thanks, it appears to have worked. and the system is no longer creating new profiles every 10 minutes.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 16, 2013 2:48 PM

All replies

  • User1546878023 posted

    You haven't by any chance set the slidingexperiation attribute to true?

    http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.slidingexpiration.aspx

    Tuesday, January 15, 2013 3:52 PM
  • User-227910405 posted

    It's true by default, but i did experiment with toggling it from true to false. it had no effect

    Tuesday, January 15, 2013 5:26 PM
  • User-861818263 posted

    cookieTimeout default is 100000 minutes.


    Try with 

     <anonymousIdentification
            enabled="true"
            cookieless="UseCookies"
            cookieName=".ASPXANONYMOUS"
            cookieTimeout="10000"
            cookiePath="/"
            cookieRequireSSL="false"
            cookieSlidingExpiration = "true"
            cookieProtection="Clear"
          />
    Wednesday, January 16, 2013 3:37 AM
  • User-227910405 posted

    Thanks, it appears to have worked. and the system is no longer creating new profiles every 10 minutes.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 16, 2013 2:48 PM