ASP.NETCookielessSessionURLsonlypublishinMobileSafariWehostonAppHarborandusetheirmemcacherpluginasdescribedintheirdocumentationSettingitupasdescribedin:Theproblemwe'reseeingcanonlybereproducedby:shorteningtheapptotheURLofappfail.netiniOSSafari(orthebuilt-inwebkitbrowserfortheTwitteriphoneapp):http://t.co/6tRXopEJClickour"RunDemo"buttonandautomaticallylogtheuserinwithourdemoaccount.此时服务器发出302重定向到一个无效的URL,例如:http://appfail.net/(F(FckQ4UX0zD_WSxk_adpkk3YysHsYQS4TSVpljxmswyBqEAZ1q-YhW4KePrpYQfJ4KlLGaiyje_TbpeSARVyI8LioQ7Jp5EIc0Zm9u99IqRRkkoMh_wr-jrsrvje4J7KpUt1n87xEMzMeqHzpMz9ksm42IqNnf3F9B6GBwrnuA5EY_YsV0))/Applications该URL似乎包含SessionID,其格式与IIS用于无Cookie会话inthesameformat.Thisalsomakessense,sinceIIScanbeconfiguredtouseUserAgent-basedsessionlesscookies-soitcanonlybereproducedinmobileSafari(althoughI'mnotsurewhyitonlyhappenswitht.co/redirect,butnotdirectlypageloaded)Weirdthing-weturnedoffcookielesssessions!Asyoucanseeinthesessionstateabove.I'vealsotriedsetting'cookieless="UseCookies"'...noluck!I'veaddedloggingandevenverifiedthatthesystemisconfiguredto"UseCookies"atruntime.所以,我想知道我们如何仅使用RedirectToAction()将用户重定向到无cookie的URL?我想知道这是否与自定义会话状态提供程序-MemcachedProvider有关?或者更基本的东西?谢谢Sam这可能是由于ASP.NET客户端功能检测错误,请在使用iPhoneUIWebView时检查此问题:Asp.NetFormsAuthenticationMicrosoft于2011年9月发布了一个修补程序,它解决了我在Windows8PreviewRelease中的问题与IE10类似的问题在。以上就是C#学习教程:ASP.NET免cookiesessionURL只发布和分享手机Safari中的所有内容。如果对大家有用,需要详细了解C#学习教程,希望大家多多关注。本文来自网络收藏,不代表立场,如涉及侵权,请点击右边联系管理员删除。如需转载请注明出处:
