Session lost when using hostname instead of IP address (IE)

前端 未结 4 1969
故里飘歌
故里飘歌 2021-01-21 19:37

I\'m learning asp.net mvc 2, it\'s very excting with me.

I has built a small MVC2 application, it is working fine in built it ASP.net Development Server. However, there

4条回答
  •  没有蜡笔的小新
    2021-01-21 20:36

    If you are using cookie based sessions it could be that you are not allowing cookies in IE.

    I believe by default the session identity is stored in a cookie between requests to allow the application to reconnect to its session data.

    You can use cookieless sessions which append the session identity to the url as a querystring, or at least in webforms - I'm not sure how this behaves in mvc.

提交回复
热议问题