Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome losing cookies after Ubuntu reboot [closed]

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:

  1. log in to stackoverflow
  2. log out from system
  3. log in to system
  4. unlogged on stackoverflow!

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.

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?

Edit: I asked this question on StackOverflow, because I thought it may be related with localStorage.clear()

Fianlly fixed in 53.0.2785.143: https://chromium.googlesource.com/chromium/src.git/+/fc6f304827896fb27397fc2a27f9f5717eff319c

like image 360
andrzej1_1 Avatar asked Sep 10 '16 11:09

andrzej1_1


People also ask

Why does Chrome keep deleting my cookies?

It must be due to some extension that you have installed. Extensions can have access to clear the cookies. So, If you have not deleted the cookies manually, then the other extensions installed, are the responsible for clearing the cookies.

Where are Chrome cookies stored on Linux?

Go to the Network tab. There you should see a Cookies option. It will show you the list of cookies sent/returned for that very specific request. In most cases, you are interested in the cookies of the GET used to load the HTML page.

How do I restart Chrome without losing data?

Now Chrome has included a feature which will allow you to restart Chrome without losing any open tabs or Chrome Profiles. Here's how: Type chrome://restart in the Address bar, you will notice the browser shut down and restart. All previously opened tabs - and any other windows with Chrome open - will now be restored.


1 Answers

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.

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.

like image 89
mc.god Avatar answered Nov 09 '22 22:11

mc.god