public string PropertyName
{
get
{
object temp = Session["PropertyName"];
// Returns an empty string if the session variable is null
// otherwise it casts the session variable to a string and returns it
return temp == null ? string.Empty : temp as string;
}
set
{
Session["PropertyName"] = value;
}
}