Fixed cookie expiration issue