My requirement is to pass some parameters from a function to another page. I considered two ways of doing it - 1)sessions , 2) Query strings.
Sessions are known to increase load on the server as apposed to query strings.
This is the way am extracting parameter values from the url(after using query string)
static string para1 ; static string para2;
string[] parts = urlString.Split((new string[] { "?para1=", "&¶2="}), StringSplitOptions.None);
para1 = parts[1];
para2= parts[2];
Do these strings results in loading memory if I assign them to null after use? Is using session better than query strings in terms of memory allocation and server performance.