asp.net mvc cookie 未保留在本地服务器上 (aspnetserve)
尝试在“便携式”Web 服务器上运行 MVC 应用程序。软件是aspnetserve。 (http://www.ohloh.net/p/aspNETserve)
Cookie 不会保留。当我从 Visual Studio 调试运行时,它们表现得很好。代码看起来没问题。
当我使用此服务器时,只有死机(无法从一个页面持续到另一个页面)。
我的解决方案需要为应用程序部署一个像这样的便携式本地解决方案。 (这不仅仅是为了测试目的)
现在相当困惑。有什么好主意吗?
谢谢。
Trying to run an MVC app on the 'portable' web server. Software is aspnetserve. (http://www.ohloh.net/p/aspNETserve)
Cookies do not persist. They do fine when I run from visual studio debug. Code is fine, seemingly.
Only are dead (fail to persist from page to page) when I use this server.
My solution requires deploying a portable local solution like this for the app. (this isn't just being done for purposes of testing)
Rather stumped right now. Any bright ideas?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你能看看fiddler中的请求吗?看看您是否收到 cookie?此外,您是否设置了任何特殊属性,例如requiressl、cookie路径等?
http://www.fiddler2.com/fiddler2/
Could you look at the requests in fiddler. See if you are receiving cookies? In addition, do you have any special attributes set like requiressl, cookie path etc?
http://www.fiddler2.com/fiddler2/