asp.net mvc cookie不能在本地服务器上持久化(aspnetserve)

时间:2022-06-05 04:02:59

Trying to run an MVC app on the 'portable' web server. Software is aspnetserve. (http://www.ohloh.net/p/aspNETserve)

试图在“便携式”Web服务器上运行MVC应用程序。软件是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.

Cookie不会持久存在。当我从visual studio调试运行时它们很好。代码很好,貌似。

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.

1 个解决方案

#1


1  

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?

你能看看小提琴手中的请求吗?看看你是否收到了cookies?另外,你有任何特殊的属性设置,如requiressl,cookie路径等?

http://www.fiddler2.com/fiddler2/

#1


1  

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?

你能看看小提琴手中的请求吗?看看你是否收到了cookies?另外,你有任何特殊的属性设置,如requiressl,cookie路径等?

http://www.fiddler2.com/fiddler2/