Can anybody explain how to setup my custom claims both for REQUEST and SESSION scope using the Ambient Data Framework API. I need a claim that once it is set it stays set until the session is gone. (I need this for a .NET application).
I tried to setup a few claims in Ambient Data Framework from my .net application in the same way I used to do in 2011, but this application uses the 2013 Content Delivery API. I used the following code:
AmbientDataContext.CurrentClaimStore.Put( new Uri("taf:claim:jaimesideas:blogurl"), "http://jaimesantosalcon.blogspot.com");
However after doing it the claim will only be "alive" for the duration of the Request I set the claim in. So I checked the documentation and couldn't find anything explaining how to set up your own claims other than by creating your own cartridge. Do I need a cartridge always I have to setup claims? If so, What method should I overwrite from the AbstractClaimProcessor class? How does that cartridge and config file look like?
Here is my configuration file: