adding cookies for preservation of identity on refreshes and revisits