phaseshift
IS-IT--Management
The following is an example of code that is not working. I am trying to write a class file that will set session variables as needed.
public static string ID
{
get
{
return HttpContext.Current.Session["ID"].ToString();
}
set
{
HttpContext.Current.Session["ID"] = value;
}
}
any ideas on how to get sessions to work with gets and sets?
thanks
public static string ID
{
get
{
return HttpContext.Current.Session["ID"].ToString();
}
set
{
HttpContext.Current.Session["ID"] = value;
}
}
any ideas on how to get sessions to work with gets and sets?
thanks