# Rhasta.Owin.Security.Cookies.Store.Redis
**Repository Path**: ofri/Rhasta.Owin.Security.Cookies.Store.Redis
## Basic Information
- **Project Name**: Rhasta.Owin.Security.Cookies.Store.Redis
- **Description**: https://github.com/chuongxl/Rhasta.Owin.Security.Cookies.Store.Redis
- **Primary Language**: C#
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-10-03
- **Last Updated**: 2021-10-03
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Rhasta.Owin.Security.Cookies.Store.Redis
Cookie-Store Redis is a library that includes the implementation for storing cookies in redis.
### Installation :
PM> Install-Package Rhasta.Owin.Security.Cookies.Store.Redis
### Configuration :
```
```
### Example :
```
public void Configuration(IAppBuilder app)
{
IDataProtector dataProtector = app.CreateDataProtector(typeof(RedisAuthenticationTicket).FullName);
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = CookieAuthenticationDefaults.AuthenticationType,
SessionStore = new RedisSessionStore(new TicketDataFormat(dataProtector)),
LoginPath = new PathString("/Auth/LogOn"),
LogoutPath = new PathString("/Auth/LogOut"),
});
}
```