如何解码和编码IE cookie文件的内容? [英] How to decode and encode the content of IE cookie files?

查看:212
本文介绍了如何解码和编码IE cookie文件的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个cookie文件:

I have this cookie file:

C:\ Users \< username> \ AppData \Roaming\Microsoft \ Windows \ Cookies \X6NIM8XR.txt

具有以下内容:



用户名

Wilhelm

< my website>

1600

707951488

30470522

845076939

30464487

*




那么如何解码/编码cookie字段  安全,  修改  来自/到这些数字?

which has this content:

username
Wilhelm
<my website>
1600
707951488
30470522
845076939
30464487
*


So how can I decode/encode the cookie fields SecureExpire and Modified from/to these numbers?

编辑:因为我注意到更改了cookie值(例如从Wilhelm到John)这个
X6NIM8XR.txt 文件不起作用:是否有一个方便的命令行程序可以:

EDIT: Since I have noticed that changing the cookie value (e.g. from Wilhelm to John) in this X6NIM8XR.txt file does not work: Is there a convenient command-line program which can:


  • 从特定cookie获取所有字段
  • 修改特定cookie的特定字段

推荐答案

您好,

f12>控制台标签,

f12>Console tab,

输入

document.cookie

document.cookie

cookie对象将在控制台中列出。

the cookie object will be listed in the console.

web搜索'cookie javascript'以获取文档cookie的脚本api的完整描述。如果您使用的是活动服务器页面,您还可以使用服务器端代码操作cookie crumb,例如。 php,asp.net

web search for 'cookie javascript' for a full description of the scripting api for document cookies. If you are using active server pages you can also manipulate a cookie crumb using your server side code eg. php, asp.net

MS Edge的开发工具现在可以像gecko和webkit浏览器一样查看和操作文档cookie。使用安全协议(https)可确保在飞行期间对cookie的内容进行编码。但是,您不应将用户的
电子邮件地址或密码存储在其Cookie中。

The Dev tool of MS Edge now enables you to view and manipulate document cookies as does gecko and webkit browsers. Using the secure protocol (https) ensures that the contents of your cookies are encoded during flight. However, You should not store user's email address or passwords in their cookies.

问候。


这篇关于如何解码和编码IE cookie文件的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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