Reputation: 1008
I want to save a value in a variable and use it in following requests. How can I save data in a persistent way?
Upvotes: 0
Views: 39
Reputation: 1008
I solved my problem saving my data in a file and than I read it in the next request:
var fso = new ActiveXObject("Scripting.FileSystemObject"),
thefile=fso.CreateTextFile("C:\\temp\\bogusToken.txt",true);
thefile.Write(token);
thefile.Close();
...
my_Token = File.ReadAllText("C:\\temp\\bogusToken.txt");
Upvotes: 0