My computer doesn’t resume after power is off?

I have a laptop which i just bought recently. When the power is off without I realizing; i mean before I plug in the power, my computer does not resume to the previous work I was doing before the power went off. For the browsers they restore, but for the rest of the other programs and applications they don't. I would like to know what's the problem and rectify it.
