Skip to content

Instantly share code, notes, and snippets.

@timgabrhel
Created April 19, 2016 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timgabrhel/45c802c4883fef2025926a446444e16c to your computer and use it in GitHub Desktop.
Save timgabrhel/45c802c4883fef2025926a446444e16c to your computer and use it in GitHub Desktop.
redis asp.net session provider
<system.web>
<sessionState mode="Custom" customProvider="RedisSessionProvider">
<providers>
<add name="RedisSessionProvider"
type="Microsoft.Web.Redis.RedisSessionStateProvider"
port="6379"
host="abc.redis.cache.windows.net"
accessKey="abc"
ssl="false"
connectionTimeoutInMilliseconds="15000"
operationTimeoutInMilliseconds="15000"
retryTimeoutInMilliseconds="1500" />
</providers>
</sessionState>
</system.web>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment