.netcoreSession 问题
海优 2020-01-02 02:46:17 1.将值A发送给第三方。第三方将值A通过HttpPOst 到后台的方法,后台方法读取Session总是为空。。希望能够获取到Session
注:跨页面的Controller中能获取到,
//////////////////////////////////////////////
public bool testTokenPwd([FromBody]TokenModel tokenModel) {
string AuthtokenPwd = HttpContext.Session.GetString("AuthtokenPwd");
//if (tokenModel.tokenpwd.Equals(AuthtokenPwd)) { return true; }
return true;
/////////////////////////////////////////////////////////////////////////////////// }