Windows 8 WinJS中的Cookie [英] Cookies in Windows 8 WinJS

查看:134
本文介绍了Windows 8 WinJS中的Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何启用IE10存储cookie?

How can i enable for the IE10 store the cookies?

某些互联网服务(例如Facebook Dialogs)以这种方式传递变量,您需要进一步使用它们请求,但IE10不允许使用cookies。

Some internet services (Facebook Dialogs for example) pass variables this way which you need to use them in further request, but IE10 dont allow cookies.

我要做的是使用Windows.Security.Authentication.Web.WebAuthenticationBroker登录facebook,获取令牌,然后打开供稿对话框...当我尝试打开供稿对话框时,我收到错误,因为页面没有cookie ...

What i'm trying to do is login at facebook with "Windows.Security.Authentication.Web.WebAuthenticationBroker", get the token, and then open the feed dialog... when i try to open the feed dialog, i receive an error, because the page have no cookies...

推荐答案

如果您的问题是关于 WinRT 使用 JavaScript / HTML / CSS 编写的应用程序那么你没有cookies的概念,因为这不是IE10,而是 IE10 HTML渲染引擎 - Trident IE10 JS引擎 - Chakra 。您在 Windows应用商店应用中有 AppData 本地状态,临时状态,漫游状态)您可以使用它来存储您想要的任何数据。 这是一个指南如何访问本地州。

If your question is about WinRT Applications written using JavaScript/HTML/CSS then you don't have the notion of cookies, because this is not IE10 but instead it's the IE10 HTML rendering engine - Trident, and IE10 JS engine - Chakra. You have AppData (Local state, Temp state, Roaming state) in Windows Store Apps which you can use to store any data you want. Here's a guide how to access the Local State.

如果问题确实与IE10有关,那么我向你保证,如果用户启用了cookie,IE10将支持cookie。

If the question is really about IE10 then I assure you IE10 supports cookies if the user has cookies enabled.

这篇关于Windows 8 WinJS中的Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆