Marshalize for cookies and log_out for close browser or tab