This project is read-only.

Session state storage information

Aug 13, 2008 at 8:22 PM
Is there any documentation available on how session storage works and what features are implemented?  I did see the little quickstart guide, but it is thin on details regarding db setup.  Are other dbs supported aside from SQL Server?  Does it handle automating the process of automatically persisting the state to storage asynchronously for improved performance?

Ie, is there something that explains all of the features and configuration options available for this?


Aug 14, 2008 at 4:08 PM
Edited Aug 14, 2008 at 4:09 PM

There are two mode available for the session state providers.
 * First is memcached with db backup.
    In this configuration, data is first stored in memcached and then it is save in the database. When the data is read back, provider first checks 
    memcached, if it can't find session information there it just moves to database. Data is not stored in the async manager in the database.
    Right now only SQL Server 2005 is supported. However, all the db operations are done though an interface "IDbOperations" under "MemcachedProviders.Session.Db". 
    If you implement this interface for the new db and update the SessionStateProvider to use that class. This way any db can be supported.
 * Second is memcached without db backup.
    In this configuration, data is only stored in memcached. When the data is read back from the memcached, if it is not there session expires.

Please refer to following thread for the different modes that are supported
Aug 15, 2008 at 10:17 PM
Thanks for the reply and information... I am going to continue researching it.