instead of doing
session(\"myvar1\") = something
session(\"myvar2\") = something
session(\"myvar3\") = something
session(\"myvar4\") = something
How about:-
public static class SessionVar
{
public static readonly string myVar1 = "myVar1";
public static readonly string myVar2 = "myVar2";
public static readonly string myVar3 = "myVar3";
public static readonly string myVar4 = "myVar4";
}
This allows you to use:-
session(SessionVar.myVar1) = something;