Is it possible to persist cookies between visual studio debug sessions

前端 未结 3 1983
忘掉有多难
忘掉有多难 2021-01-05 00:46

I have an authentication cookie that gets set after I hit a login screen in my local environment. That cookie has been set to be persistent and has been given a timeout peri

3条回答
  •  悲哀的现实
    2021-01-05 01:10

    Assuming you are using VS and ASPNet 4.5 or core 1.0/2.0 under IIS, check your debug output on start up and you might see :

    “Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.”

    This is caused by the DataProtection keys used by IIS. Follow this short blog post to resolve

提交回复
热议问题