Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:16:31+00:00 2026-05-27T23:16:31+00:00

Per Microsoft’s ProfileInfo definition http://msdn.microsoft.com/en-us/library/system.web.profile.profileinfo.aspx , an unauthenticated profileinfo object has a username; naturally

  • 0

Per Microsoft’s ProfileInfo definition http://msdn.microsoft.com/en-us/library/system.web.profile.profileinfo.aspx, an unauthenticated profileinfo object has a username; naturally this must be keyed off of to persist/ reference profile information in a given session (I am assuming it is session-based). I’m guessing this is some guid or something, but I don’t see where this is defined, created, tracked, etc. Can someone point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:16:32+00:00Added an answer on May 27, 2026 at 11:16 pm

    Well… The question interested me so I’ve decided to do some research.

    A bit of digging in documentation lead me first to Implementing a Profile Provider MSDN article, where I’ve found the following:

    GetPropertyValues method

    Takes as input a SettingsContext and a SettingsPropertyCollection
    object.

    The SettingsContext provides information about the user. You can use
    the information as a primary key to retrieve profile property
    information for the user. Use the SettingsContext object to get the
    user name and whether the user is authenticated or anonymous.
    …

    So, the determination of whether user is authenticated or not is generally done on higher level. Anyway, I took a look at code of Microsoft’s default SqlProfileProvider implementation (namely, GetPropertyValues method implementation) and found out that it calls method private void GetPropertyValuesFromDatabase(string userName, SettingsPropertyValueCollection svc) which actually has the following code:

    HttpContext context = HttpContext.Current;
    ...
    string sName = null;
    
    if (context != null) 
        sName = (context.Request.IsAuthenticated ? context.User.Identity.Name : context.Request.AnonymousID);
    

    So, if we have a non-authenticated request then a user id is taken from HttpContext.Current.Request.AnonymousID property. Searching through MSDN for this property has revealed the following page: HttpRequest.AnonymousID property (System.Web). Although it still does not describe exact algorithm of generating this ID, but it provides information on how you can override this default algorithm if you want. All you need is to overload public void AnonymousIdentification_Creating(Object sender, AnonymousIdentificationEventArgs e) method in your web application. Also this page provides some information on how AnonymousID is persisted between calls (by default it’s stored in .ASPXANONYMOUS cookie).

    Example code:

    void Application_Start(Object sender, EventArgs e)
        {
            // Initialize user count property
            Application["UserCount"] = 0;
        }
    
    public void AnonymousIdentification_Creating(Object sender, AnonymousIdentificationEventArgs e)
        {
        // Change the anonymous id
        e.AnonymousID = "mysite.com_Anonymous_User_" + DateTime.Now.Ticks;
    
        // Increment count of unique anonymous users
        Application["UserCount"] = Int32.Parse(Application["UserCount"].ToString()) + 1;
    }
    

    Summary: I have not been able to answer your original question on HOW this ID is created by default but I think that last code snippet will be enough for you to override this with any algorithm you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per this document http://msdn.microsoft.com/en-us/library/bb613488(v=vs.85).aspx I've created a profile in: %windir%\system32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1 The profile only
As per MSDN, http://msdn.microsoft.com/en-us/library/ms646302%28VS.85%29.aspx GetLastInputInfo does not provide system-wide user input information across all
http://msdn.microsoft.com/en-us/library/dd997415.aspx Per the article referenced above I am trying to handle exceptions in a
I am creating a C# class as per: http://msdn.microsoft.com/en-us/library/x6h10s6x.aspx however I want my own
As per this sample - http://msdn.microsoft.com/en-us/library/windows/desktop/ee706590(v=vs.85).aspx , I am trying to invoke my script
As per http://msdn.microsoft.com/en-us/library/h21twfw7(v=VS.100).aspx (for Visual Studio 2010) strstreambuf is deprecated. I was of the
http://msdn.microsoft.com/en-us/library/ah19swz4(v=VS.71).aspx As per the above link….. Structs, however, inherit from the base class Object……
After reading http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentsessions.aspx and http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx I have concluded that: MaxConcurrentSessions is the number of
As per this link :http://msdn.microsoft.com/en-us/library/bb397906.aspx namespace Linq { class IntroToLINQ { static void Main()
I wrote a custom UITypeEditor for my type Smiley per MSDN's walkthrough http://msdn.microsoft.com/en-us/library/ms171840.aspx When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.