Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services.AddDistributedMemoryCache();
- services.AddSession(options =>
- {
- options.Cookie.HttpOnly = true;
- // Make the session cookie essential
- options.Cookie.IsEssential = true;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement