c# - Windows Phone 8 网络浏览器 : session drops out on resume

标签 c# windows-phone-8 windows-phone

我为自己的网站制作了一个应用程序,只需使用 WebBrowser 控件导航到其主页。

然后我确实登录到我的网站并通过按住后退按钮切换到另一个应用程序,但问题是当我切换回我的应用程序时,它会重新加载页面并注销我刚刚登录的帐户就在两分钟前。

如何解决这个问题?

谢谢。

最佳答案

我找到了这个,这可能就是您正在寻找的: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj735579(v=vs.105).aspx

If the user returns to the application by pressing the Back button or by using the Task Switcher, the app instance resumes. Because the app was preserved in memory, the app quickly resumes in the same state it was when the user navigated away. This process is called Fast App Switching (FAS). If the app is suspended and the user relaunches the app, such as by tapping on the app name in the app list or tapping the app’s primary Start Tile, by default the old instance of the app is terminated and a brand new instance of the app is created. This process is slower than resuming a suspended app and provides a different user experience. Windows Phone 8 introduces the ability for apps to request that user actions that would typically relaunch the app, such as tapping the app’s Start Tile, instead resume the suspended instance of the suspended app instance, if one exists. This feature is called Fast Resume.

关于c# - Windows Phone 8 网络浏览器 : session drops out on resume,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22792773/

相关文章:

c# - Xamarin 不兼容的目标框架错误 - NuGet 可以帮助我吗?

.net - 将 Windows Phone 8 应用程序移植到 Windows 8

c# - 出现异常 "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

iOS/Windows 商店应用程序 : can I know whether my other app installed on this device/user account?

c# - 带按钮的 TreeView 多级自定义模板

c# - 如何在Excel工作表的特定位置添加文本框?

c# - 标记为内容的 Windows Phone 8 文件的位置

c# - 突破 Windows Phone Dev 碰撞检测

windows-phone-7 - 为什么WP7全景页面更新时会跳回去?

c# - asp.net MVC 4 - 复选框项目的输出列表,将选择与用户相关联 - 允许稍后显示和编辑