How to grab the username from HAP logon to use in my own code?
When running Version 5.6 of HAP we also had some classic .asp pages that pulled specific info from a database for each user which worked by using the following code:
' CAPTURE STUDENT USERNAME
Set objNet = CreateObject("WScript.NetWork")
session("user") = objNet.UserName
With the new install, presumably because the version 9 install on IIS7 now uses AppPoolIdentity, no matter who logs in, the user that this code returns is 'HAP'.
Is there anyway of grabbing the username that is entered when someone logs in now?
Many thanks in advance,