Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Azure Cache Session State Wrong Values
    primarykey
    data
    text
    <p>I have a cloud based application using Windows Azure Cache Service. Here are my settings:</p> <pre><code>&lt;!-- Windows Azure Caching session state provider --&gt; &lt;sessionState mode="Custom" customProvider="AFCacheSessionStateProvider"&gt; &lt;providers&gt; &lt;add name="AFCacheSessionStateProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="default" dataCacheClientName="default" applicationName="AFCacheSessionState"/&gt; &lt;/providers&gt; &lt;/sessionState&gt; &lt;dataCacheClients&gt; &lt;dataCacheClient name="default"&gt; &lt;!--To use the in-role flavor of Windows Azure Caching, set identifier to be the cache cluster role name --&gt; &lt;!--To use the Windows Azure Caching Service, set identifier to be the endpoint of the cache cluster --&gt; &lt;autoDiscover isEnabled="true" identifier="xyz.cache.windows.net" /&gt; &lt;!--&lt;localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" /&gt;--&gt; &lt;!--Use this section to specify security settings for connecting to your cache. This section is not required if your cache is hosted on a role that is a part of your cloud service. --&gt; &lt;securityProperties mode="Message" sslEnabled="true"&gt; &lt;messageSecurity authorizationInfo="xxx" /&gt; &lt;/securityProperties&gt; &lt;/dataCacheClient&gt; </code></pre> <p></p> <p>My session variables are getting mixed up between customers, which happened after I added this session state management. Here is what's happening:</p> <ol> <li>Customer goes to page A. Email is joe@123.com. A variable called email is held in session state.</li> <li>User navigates to page 2. The variable changes to jack@456.com. At no time is the variable assigned by other code. It stays constant. It seems my session state management is mixing up my variables.</li> </ol> <p>Could this be caused by incorrect settings or code? I am only using a small VM with one core. Should I use another session state management?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload