cookie values disappear when traversing between content pages

后端 未结 4 1825
傲寒
傲寒 2020-12-10 20:46

in my app. there\'s a log in mechanism which save a cookie with the info of the user who just logged in

     private void CreateCookie(LoginEventArgs args)
         


        
4条回答
  •  不知归路
    2020-12-10 21:28

    try the following:

    • If you are developing on your local machine, put your app on some free web page, so there will be no 'special treatment' because you're in the local host.
    • If you already are on a web-server, and if the re-directions are between tow different domains, you may want to search google for 'same origin policy' or read this: http://en.wikipedia.org/wiki/Same_origin_policy (the document talks about javascript, but its true also for cookies).

提交回复
热议问题