I am having a problem with Request.ServerVariables["LOGON_USER"]. My application needs to get the userid from logon_user and perform a query against the database . So, this application works fine when I run it on the local machine.
But interestingly, when I port the code to a remote server, it returns the userid from Logon_user but performs the query with some cached id.
I tried doing everything like turning of anyonymous access, turning on Integrated authentication and turning on basic authentication etc. Doesn't make any difference.
I read somewhere on one of the web server forums about some roaming profiles in Active Directory being the reason for that and asking them to turn it off. I am not sure how to tackle this with that. Can anyone throw some light on this? Or give any other piece of advice?