Go to the Privacy & security tab in Settings. You can choose to allow only session (temporary) cookies, which will be removed when you quit the browser.
The default setting is to accept all cookies. To set your cookie preferences: Go to Settings. Click Advanced in the left sidebar, and click Privacy & security. Features · Security and privacy · Search · Advanced