title: How to create a custom session store
body: <p>I am implementing owin middleware,where i need to store the session in database.
  Consider this example-</p>
  
  <pre><code>var options = new CookieAuthenticationOptions()
              {
                  AuthenticationType = CookieAuthenticationDefaults.AuthenticationType,
                  CookieName = "ChatCookies",
                  LoginPath = CookieAuthenticationDefaults.LoginPath,
                  LogoutPath = CookieAuthenticationDefaults.LogoutPath,
                  ExpireTimeSpan = TimeSpan.FromDays(1),
                  SessionStore = 
              };
  </code></pre>
  
  <p>Here there is session store option and i want to implement it, so i am not able to figure it ,how to do it. Please help me to make it.</p>