从.NET Framework中的Cookie读取值4.8 API

发布于 2025-01-19 16:37:53 字数 585 浏览 2 评论 0原文

我想从Angular应用程序中阅读cookie,该应用以这种方式设置为Angular this.cookieservice.set('keepMeloggedIn',string(this.checkboxvalue));
在.NET框架4.8 API中。我尝试了多个选项以这种方式读取值

request.cookies [“ keepmeloggedin”]
或喜欢它在,但它仍然始终返回null。
我已经在
devtools ,然后在尝试读取值并设置为设置之前设置了cookie。

cookie集是否错误/需要以不同的方式发送,或者我应该如何阅读API中的值?

I want to read Cookies from my Angular Application which is set in this way in Angular
this.cookieService.set('KeepMeLoggedIn', String(this.checkBoxValue));
in .NET Framework 4.8 API. I tried multiple options to read value like this way
Request.Cookies["KeepMeLoggedIn"]
or like it is described in documentation here but it still always return null.
I've checked In DevTools and the cookie is set before trying to read value and it's set.

Was the cookie set wrong/needs to be sent in a diffrent way or how should I read the value in API?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文