How can I restore a lost Chrome session?
Solution 1
Update 9/5/2021: This answer and the script have been updated. Now it works again with the new Chrome "Session_" and "Tabs_" files.
Don't restart Chrome again yet (hopefully you're seeing this from another browser). There's a chance that the files mentioned below will be overwritten when Chrome gets restarted, so try to make a copy of them before that happens if possible.
If you go into your Chrome User Data directory, you should find the files Session_*
and Tabs_*
, which are files for your Session. There should be files for both your Current and your Previous sessions.
- on Windows:
%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Sessions\
if you're using the Default Chrome Profile. - If you have multiple Chrome Profiles, the other profiles can also be found in the User Data directory, with names Profile 1, Profile 2, etc. Each profile has its own
Session_
andTabs_
files. - If you can't find the directory, see here
Copy these files to another location as a backup before you restart the browser so you don't lose them if they get accidentally replaced with an empty new session.
Now, if you kill your browser and then relaunch it, it should ask you if you want to restore your session, and it will pick the newest pair of Session_
and Tabs_
files from that directory. So you should be able to remove the newest pair from there and leave the older pair to open that session when you restore.
For this, you need to Kill the browser, not just close it, because otherwise, it won't trigger the "Restore session" prompt.
To Kill Chrome:
- You can enter
chrome://inducebrowsercrashforrealz
in the URL bar, or use Task Manager, or the command line, or (in Windows) runtskill chrome
straight from theRun
dialog window which can be opened withWinKey + R
So in summary, after grabbing the right files, the steps should be:
- Kill Chrome
- Put the right files in the directory
- Relaunch and click "Restore" when prompted
I also wrote some simple bat scripts that I use to easily copy the current session files, restore, and make some backups.
You can check them out here:
https://github.com/aljgom/chrome_sessions
(this demo video is slightly different than the updated version, but it is pretty much the same)
Solution 2
As I just had this happen to me let me describe the scenario and why CTRL-SHIFT-T doesn't work for me:
- a new driver crashed my PC so I had to restart
- while I waited for all the system tray icons (Dropbox, etc.) to start I noticed the Intel Driver Updater and clicked it
- this opened up an EMPTY Chrome. There was a message box "Restore windows after crash" but it either didn't work or disappeared while the cookie notice from the Intel website popped up
- I was left with an empty Chrome window
Now since I use multiple windows to separate different work projects the history or recent tab doesn't help. Some of the tabs were opened more than a week ago and I'll never find them in the history.
I installed the Chrome extension Session Buddy and with one click I could restore a backup from 10 minutes ago.
Now don't laugh at me: I had 32 windows with 122 tabs open and re-opening them worked just fine
Solution 3
The easy way: Press ctrl+shift+t as many times as required to re-open all previously opened tabs.
The slightly more complicated way: Access your browser's history by pressing ctrl+h and select the old tabs which you wish to re-open.
Note that neither method will work for incognito tabs and windows. This is by design.
Solution 4
I recommend using The Great Suspender. Besides allowing you to keep open tabs "suspended" (so they don't consume memory) it keeps a record of your windows and its respective tabs. My computer just cracked and I was able to recover my 5 windows and +50 tabs thanks to using that.
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
Computer shut down on me and the restore previous session button didn't work. Is there a file that shows previous session URLs? I remember hearing about this a while ago. Any help is appreciated thanks
-
LB2 almost 5 yearsJust tried Session Buddy, but after installing, it did not see my old windows and failed to restore them :( So YMMV.
-
kynan over 4 years@LB2 Note that you need to have the option "Automatically record sessions" ticked in Session Buddy. Snapshots are taken on a regular basis, but of course Session Buddy can not recover a session from before it was installed in the first place...
-
kynan over 4 yearsFWIW, Session Buddy is likely a more accessible way of doing this.
-
matje about 4 years@kynan But Session Buddy is only viable if you already had it installed prior to losing the tab. This solution doesn't suffer from the same limitation.
-
kynan about 4 yearsYes, Session Buddy only helps you the 2nd time round (or if you proactively install it)
-
user806202 about 4 yearsThank you, it really works!
-
Philippe Ombredanne about 4 yearsThis should be the accepted answer as this is the simplest, is built-in and works all times. Kudos to @undo
-
Argyll about 4 years@PhilippeOmbredanne: well that isn't true. Reopen closed tab simply cycles through tabs from
Last Session
, andLast Tabs
. If those files got replaced or corrupted for whatever reason, said method doesn't work. For example, if you have rebooted, said solution doesn't work. -
Philippe Ombredanne about 4 years@Argyll good to know! though why would rebooting be different from a crash?
-
Argyll about 4 years@PhilippeOmbredanne: Probably because Chrome tells Win 10 to delete those files upon system shutdown. I really REALLY wish Chrome wouldn't do that.
-
Argyll about 4 years@PhilippeOmbredanne: btw, if you have any idea to share for my question, I'd greatly appreciate it ;)
-
Philippe Ombredanne about 4 years@Argyll I am not running Windows ;)
-
Argyll about 4 years@PhilippeOmbredanne: ahhh. That's ok :)
-
Alejo almost 4 yearsIt's a chrome extension btw
-
user1151080 almost 4 yearsWhat's frustrating is that: 1. Chrome doesn't always reliably crash when I end the process. Sometimes it just opens again fine. I can't figure out a way for it to reliably crash. I have no other way to access the "restore" dialog. 2. Often the files still don't work, no matter how many times I try to restore them. Chrome will just open a blank page without informing me that the restoration failed.
-
aljgom almost 4 years@user1151080 you can try entering chrome://inducebrowsercrashforrealz in the URL and maybe it'll crash it better? and about the files, it could be that you're copying the files after the browser created a new session? If you kill it and start the browser before copying, it's too late and the files are replaced by empty ones I believe. For this, the "Last Session" files would help, but although this post is recent, I made this script a few years ago and haven't tested it much lately, I think I noticed Chrome doesn't create the "Last" files anymore, or maybe they have another name now?
-
user1151080 almost 4 yearsThanks for the "chrome:" link. As of version 83, Chrome is still saving "Last Tabs" and "Last Session" for me. I do check which files I copy, based on their size. But still once in a while they don't do anything. Usually "Current Tabs/Session" are a few kilobytes each, because they represent a new default session, and "Last Tabs/Session" are in the hundreds of kilobytes because they represent the previous crashed session and I had a lot of tabs open. Sometimes "Last Session" is 0 bytes, so maybe they are getting corrupted somehow.
-
Michel over 3 yearsworked gr8.thank you so much
-
Zskdan over 3 years+1 as The "Great Suspender" was able to restore my previous sessions. unlike "Session Buddy".
-
Max over 3 yearsThis answer is flat out wrong. The question is for when Chrome lost these tabs, as in lost from "most recently closed tabs". And it's happened to me a few times on my mbp.
-
Justin over 3 yearsI'm so glad I found this. I always use the "Great Suspender" anyway, and when my PC crashed and ctrl+shift+T didn't work, I checked the great suspender settings and sure enough I was able to restore my tabs.
-
Moobie about 3 yearsThe Great Suspender (7.1.8) is now removed from Chrome Web Store because it has been flagged as a malware.
-
Kyle Baker about 3 yearsAlso, lots of us roll with 100+ tabs and (for example in my case) 5 windows. Some of those tabs may have been open for weeks (multiple ongoing projects). This definitely should not be the accepted answer, though it's fine to sit here as an answer for some users to whom it may be helpful in limited scenarios.
-
Kyle Baker about 3 yearsNote that while it has been flagged as malware, there is an open source fork of it that has the malware removed that you can manually install. You'll need to find it on github.
-
Greeso almost 3 yearsYou sometimes are presented with "Reopen Closed Window" as well
-
user1461607 almost 3 yearsThe files that matter are in the Default/Sessions folder.
-
303 over 2 yearsThe easiest way to kill chrome on Windows is to simply run
tskill chrome
straight from theRun
dialog window which can be opened with[WinKey] + R
. -
glenviewjeff over 2 yearsFurthermore browser history provides no information about tabs, simply sites visited.
-
arkon about 2 yearsOP is asking how to resolve a situation that has already happened. This is not a proper solution to such a scenario.
-
Redoman about 2 yearsThe open source fork is called the Marvellous Suspender