Where does Firefox store the opened windows/tabs/URLs for session restore after a crash?

Solution 1:

It's in sessionstore.js in your profile directory. It can be moved to a different profile without problem.

(This might also show sessionstore.bak, which is a backup of the previous version of that file.)