added expires attribute to cookie as a fallback