In OnSessionStart i'm calling IntegratedSecurityGetDetails. The first time i load the browser and the app i noticed that the username is "" but then a security exception is thrown and the NoPermission screen's preparation is executed where a redirect to IntegratedAuthentication.aspx takes place. After that the OnSession Start is executed again but this time IntegratedSecurityGetDetails.UserName is NOT blank anymore.
In the documentation for IntegratedSecurityGetDetails it says:
Is there any way to get the windows user's username onSession start at all times?
Thank you very much for any ideas.
In the documentation for IntegratedSecurityGetDetails it says:
If the information is not available, i.e. the user is not authenticated in the Windows system, all the boolean output parameters return false and the username is "".
That's strange because i'm of course authenticated in Windows since i'm logged in to my PC and i'm running IE so why would username ever be blank?Is there any way to get the windows user's username onSession start at all times?
Thank you very much for any ideas.