The difference between a 'permanent' cookie and a 'session' cookie is when it's set to expire. If you don't set an expiration date, the cookie's supposed to go away when the user closes the browser.
If you do set a date, the cookie's supposed to last until that date.
Bugs and incomplete implementations of the specification mean your experience may vary. :)