It's not true that your life flashes before your eyes when you die. At least, not all of it. Some of your life might flash. Other portions of your life it might take you years and years to recall. That, I think, is the function of Hell: It's a place of remembering. Beyond that, the purpose of Hell is not so much to forget the details of our lives as it is to forgive them.