set expires-attribute for cookies

Internet Explorer needs the expires-attribute to be present in order to make the cookies persistent.