ClaimsCookie 0.9.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ClaimsCookie --version 0.9.1                
NuGet\Install-Package ClaimsCookie -Version 0.9.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ClaimsCookie" Version="0.9.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClaimsCookie --version 0.9.1                
#r "nuget: ClaimsCookie, 0.9.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ClaimsCookie as a Cake Addin
#addin nuget:?package=ClaimsCookie&version=0.9.1

// Install ClaimsCookie as a Cake Tool
#tool nuget:?package=ClaimsCookie&version=0.9.1                

An HttpModule that will serialize user information to a chunked protected cookie (with MachineKey) and deserialize on every request to a ClaimsPrincipal.


var user = new Dictionary<string, string>
               { "name", "John Foo" },
               { "id", "1234" },
               { "email", "" }


That's it. Now, you will be able to access the user claims like this:


The cookie will be chunked in multiple cookies to avoid hitting a limit if you are storing lots of user info and it will be deflated and protected with the machine key.

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 13,043 7/23/2013
1.0.0 1,572 7/1/2013
0.9.6 1,615 5/7/2013
0.9.5 1,287 5/7/2013
0.9.4 1,275 5/7/2013
0.9.3 1,325 3/21/2013
0.9.2 1,578 3/20/2013
0.9.1 1,344 3/20/2013
0.9.0 1,287 3/20/2013