Save Cookies code: string intb = project.Variables["guser"].Value; string path = project.Directory+@"\Folder\"+intb+@".txt"; instance.SaveCookie(path); Load Cookies Code: string intb = project.Variables["guser"].Value; string path = project.Directory+@"\Folder\"+intb+@".txt"; instance.LoadCookie(path);