Store complex objects in ASP.NET Core Session #aspnetcore

added by DotNetKicks
2/14/2018 7:59:30 AM

2 Kicks, 344 Views

The ASP.NET Core Session object has 3 methods to set the session value, which are Set, SetInt32 and SetString. The Set method accepts a byte array as an argument where the SetInt32 and SetString method are the extension methods of the Set method. These methods internally cast the int or string to a byte array.