Blog.Core icon indicating copy to clipboard operation
Blog.Core copied to clipboard

当我用docker 启动多个实例后,登录到swagger,调用不同实例的接口后会抛出以下警告

Open LCZQY opened this issue 1 year ago • 2 comments

Error unprotecting the session cookie. System.Security.Cryptography.CryptographicException: The key {cb2affcd-2b20-482d-9e79-602bc4b5868d} was not found in the key ring. For more information go to https://aka.ms/aspnet/dataprotectionwarning at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status) at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData) at Microsoft.AspNetCore.Session.CookieProtection.Unprotect(IDataProtector protector, String protectedText, ILogger logger) image

LCZQY avatar Apr 17 '24 08:04 LCZQY

有用Redis吗

LemonNoCry avatar Apr 17 '24 14:04 LemonNoCry

有用Redis 没有把session信息存入redis 哦

LCZQY avatar Apr 18 '24 02:04 LCZQY