Harbour.RedisSessionStateStore icon indicating copy to clipboard operation
Harbour.RedisSessionStateStore copied to clipboard

Application Prefix

Open ProTip opened this issue 10 years ago • 3 comments

Is there a way to specify a key prefix?

ProTip avatar Apr 04 '14 00:04 ProTip

Although I haven't opened up an option to do so, you can set the name of the provider as seen here:

http://msdn.microsoft.com/en-us/library/ee790859(v=azure.10).aspx#code-snippet-3

And that will change the name for the provider which acts as the key prefix.

However, I do think adding an option for KeyPrefix is a good idea.

TheCloudlessSky avatar Apr 04 '14 00:04 TheCloudlessSky

Hi! Thanks for such a fast response. I'll give the "name" value a go and see if it comes through(this is an internal provider to the one supplied by the application vendor and currently it shows as "internalProvider" :) ). We were having a chat over here though and it looks like maybe "applicationName" is the recommended way of deriving the key prefix? http://msdn.microsoft.com/library/azure/gg185682.aspx

ProTip avatar Apr 04 '14 01:04 ProTip

That looks like it's for the Azure provider and not this provider. Change the name on the <add> element and providerName attribute on <sessionState> and see if that works.

TheCloudlessSky avatar Apr 04 '14 01:04 TheCloudlessSky