G
Guest
I am designing a site that requires AnonymousID. I set my web.config to
allow this using <anonymousIdentification enable="true".../> as recommended
in the documentation.
To verify the settings I use the following code in global.asax and stop the
execution using debug to inspect the settings.
Configuration configuration =
WebConfigurationManager.OpenWebConfiguration("/SessionManager");
// Get the section.
AnonymousIdentificationSection anonymousIdentificationSection =
(AnonymousIdentificationSection)configuration.GetSection("system.web/anonymousIdentification");
In this case anonymousIdentification is enabled.
When I get the root configuration using OpenWebConfiguration(null) and check
the settings anonymousIdentification is not enabled.
Subsequently when I check the Request.AnonymousID during page requests it is
null.
Another issue is which delegate to use to directly set the AnonymousID. The
documentation recommends both AnonymousIdentification_OnCreate and
AnonymousIdentification_Creating in different areas. I supplied both in my
global.asax code and neither are called further substantiating the failure to
use the site application web.config as opposed to the root web.config
settings.
Any suggestions or help is appreciated.
allow this using <anonymousIdentification enable="true".../> as recommended
in the documentation.
To verify the settings I use the following code in global.asax and stop the
execution using debug to inspect the settings.
Configuration configuration =
WebConfigurationManager.OpenWebConfiguration("/SessionManager");
// Get the section.
AnonymousIdentificationSection anonymousIdentificationSection =
(AnonymousIdentificationSection)configuration.GetSection("system.web/anonymousIdentification");
In this case anonymousIdentification is enabled.
When I get the root configuration using OpenWebConfiguration(null) and check
the settings anonymousIdentification is not enabled.
Subsequently when I check the Request.AnonymousID during page requests it is
null.
Another issue is which delegate to use to directly set the AnonymousID. The
documentation recommends both AnonymousIdentification_OnCreate and
AnonymousIdentification_Creating in different areas. I supplied both in my
global.asax code and neither are called further substantiating the failure to
use the site application web.config as opposed to the root web.config
settings.
Any suggestions or help is appreciated.