There's an option for "delete cookies and site data when Firefox is closed", and you can allow sites to have persistent cookies. Also to block them from even use cookies, if that's your cup of tea, but I've found it works great this way: sites work but I don't keep logged in at every site all the time - after I close the browser window it's an instant log out for every site.