It happens all the time that I close my Mathematica session and later I regret that I have done so, because there are many things that I would like to check.
I would like to know if there is a way to store all the information of a Mathematica "session" in a file, for later use. Somehow, one should be able to use such file to restore the old session (not necessarily the previous one), without running the code again.
In Matlab, for example, there is the option of saving the current "workspace".
Important: I use Mathematica within Linux terminal, without a notebook interface. So, I am not interested in any solution dependent on the interface.