Okay, go into Firefox, and under the Firefox menu, go to preferences. Then hit the tab for "Privacy" and you will see where you can set how long your machine keeps cookies for. "Accept cookies" should be checked, and then change the drop-down to "until they expire" - I am guessing it is set to "I close Firefox" at the moment.
Bookmarks