Google Chrome在Ubuntu重新启动后丢失Cookie [英] Google Chrome losing cookies after Ubuntu reboot
问题描述
从几天我经历奇怪的问题。当我重新启动系统或甚至relogin,然后我退出登录或点击记住我的网站。问题仅在Google Chrome中显示(Firefox和歌剧效果良好),例如:
From few days I am experiencing weird issue. When I reboot system or even relogin, then I am logged out on sites on which I was logged or clicked 'remember me'. Problem appears only in Google Chrome (Firefox and opera are working well), for example:
- 登录stackoverflow
- 从系统注销
- 登录到系统
-
- log in to stackoverflow
- log out from system
- log in to system
- unlogged on stackoverflow!
我不知道问题出现在什么时候,记得我正在执行 localStorage.clear() code>在控制台,但我认为它不应该与此连接。
I do not know when exactly problem appeared, remember I was executing localStorage.clear();
in console, but I think it should not be connected with this.
我使用的是最新的Ubuntu 16.04,最新的Chrome 53.0.2785.101(64位)。我也尝试重新安装和使用不同的版本,如 google-chrome-beta
, google-chrome-unstable
I am using latest Ubuntu 16.04, latest Chrome 53.0.2785.101 (64-bit). I also tried reinstalling and using different versions like google-chrome-beta
, google-chrome-unstable
but without effects.
导致此问题的原因是什么?
What can be the problem causing this?
编辑:我在StackOverflow上提出这个问题,它可能与 localStorage.clear()
I asked this question on StackOverflow, because I thought it may be related with localStorage.clear()
在53.0.2785.143中固定: https://chromium.googlesource.com/chromium/src.git/+/fc6f304827896fb27397fc2a27f9f5717eff319c < a>
推荐答案
自最近几天运行以来发生同一问题 Chrome 53.0.2785.101
(64位) Centos 7
。由于我不退出 centos
我可以打开和关闭chrome广告它会继续读取保存的cookie,但是当我注销,在下次登录它不能读取cookie在所有。卸载完全删除个人Chrome设置目录( /home/myuser/.config/google-chrome /
)并未解决问题。
Exactly same issue since last few days running Chrome 53.0.2785.101
(64-bit) on Centos 7
. Since I don't log out from centos
I can open and close chrome ad It will keep reading cookies saved but when I logout, at the next login it can't read cookies at all. Uninstalling e completely removing personal chrome settings directory (/home/myuser/.config/google-chrome/
)didn't solve.
我做了另一个测试:在Chrome会话中保存新的Cookie,关闭浏览器,移走了 /home/myuser/.config/google-chrome/Default/Cookies
,再次打开浏览器,如预期,它找不到以前保存的Cookie。在将文件还原到其原始路径后,chrome再次读取保存的Cookie。从 Centos
注销后,没有cookie,但文件仍然存在并且未更改。
I made another test: saved new cookies in a chrome session, closed the browser, moved away the file /home/myuser/.config/google-chrome/Default/Cookies
, opened again the browser and, as expected, it couldn't find previously saved cookies. After restoring the file in its original path, chrome read the saved cookies again. After logoff-logon from Centos
, no cookies again, but the file is still there and unchanged.
这篇关于Google Chrome在Ubuntu重新启动后丢失Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!