N
nLL
I'm a bit confused what to do about my statution below
i have below code
-------------------------------------------------------------------------------
public class NvUtils
{
public static string AgeCheckURL(string session_key)
{
return "http://domain.com/?session=" + session_key;
}
}
--------------------------------
what im confused about is that if i'm getting/setting AgeCheckURL in
correct way. for example when i call NvUtils.AgeCheckURL("SESSIONNNN")
different times with different values i always get first return. I know
it is due to sattic keyword and it only changes when i restart web
application. How im supposed to create the function that sets
AgeCheckURL with sesison input?
I know i can define is non static but then i would need to create
instance of NVUtils. Some how i dont want to create instance but access
it directly. I find it easier.
i have below code
-------------------------------------------------------------------------------
public class NvUtils
{
public static string AgeCheckURL(string session_key)
{
return "http://domain.com/?session=" + session_key;
}
}
--------------------------------
what im confused about is that if i'm getting/setting AgeCheckURL in
correct way. for example when i call NvUtils.AgeCheckURL("SESSIONNNN")
different times with different values i always get first return. I know
it is due to sattic keyword and it only changes when i restart web
application. How im supposed to create the function that sets
AgeCheckURL with sesison input?
I know i can define is non static but then i would need to create
instance of NVUtils. Some how i dont want to create instance but access
it directly. I find it easier.