I have a ASCX control that sits inside of a CMS that is written in .net, the problem I am running into is that we have pass a variable called fullname in our headers. We have a simple script that reads this variable and then outputs the name in the page. But sometimes some users will get completely random users name (I have verified that they have not logged into that machine which tells me this must be some sort of server side caching going on). I was thinking about using SetCacheability but am not sure if this will cause the entire page to not be cached or just the ascx control that loads on the page. Any ideas on what to do?
Response.Cache.SetCacheability(HttpCacheability.NoCache);
if (!String.IsNullOrEmpty(this.UserName))
{
lblUsername.Text = Request.ServerVariables["fullname"].ToString();
}