M
Middletree
Intranet application.
strLogon= Replace(Request.ServerVariables("LOGON_USER"),"DOMAIN\","")
The above line is used by several pages on my browser-based app to obtain
the Windows login name for the user. Of course, I replaced our domain name
with the generic word "DOMAIN" here, but the point is that I am trying to
get that name and store it into a variable.
It works fine in Production, but not on my dev box, which is on the network
and is very similar to the Production server (Same OS, for example).
On my dev box, it doesn't return anything, but in Production, it will return
jsmith, mjones, etc.
It's not a showstopper, but a bit of an annoyance. Would you have any idea
why I'm not able to get the logon value on my one box but still get it on
the other, using the same code?
strLogon= Replace(Request.ServerVariables("LOGON_USER"),"DOMAIN\","")
The above line is used by several pages on my browser-based app to obtain
the Windows login name for the user. Of course, I replaced our domain name
with the generic word "DOMAIN" here, but the point is that I am trying to
get that name and store it into a variable.
It works fine in Production, but not on my dev box, which is on the network
and is very similar to the Production server (Same OS, for example).
On my dev box, it doesn't return anything, but in Production, it will return
jsmith, mjones, etc.
It's not a showstopper, but a bit of an annoyance. Would you have any idea
why I'm not able to get the logon value on my one box but still get it on
the other, using the same code?