Creating a data grid to use with the ASP.NET session state store provider

[Version 8.6.0.2 and later]Create a data grid to save session state from your ASP.NET applications.

Procedure

  1. Create a map for the ASP.NET session states.
    These maps must have: pessimistic locking, COPY_TO_BYTES copy mode, and a LAST_ACCESS_TIME TTL evictor.
    <objectGrids>        
    	<objectGrid name="my_net_session_grid">
    		<backingMap name="my_net_session_map" 
    			copyMode="COPY_TO_BYTES"  
    			lockStrategy="PESSIMISTIC"
    			nullValuesSupported="false" 
    			ttlEvictorType="LAST_ACCESS_TIME"
    			timeToLive="60"/>       
    	</objectGrid>
    </objectGrids>
    To use the WebSphere® eXtreme Scale ASP.NET session state store provider default settings, specify the my_net_session_grid value as session and the my_net_session_map value as ASPNET.SessionState.
  2. Configure the deployment descriptor XML file.
    You must use fixed partition placement for the ASP.NET session state store provider.
    placementStrategy="FIXED_PARTITIONS"
  3. Restart the data grid.

What to do next

Update the configuration of your web application to use the data grid. For more information, see Configuring your .NET application to use the ASP.NET session state store provider.