We run our intranet site with PHP on an iSeries with Apache. By default, PHP hosted on this box can not automatically get the username of the logged on windows user.
With asp.net pages hosted from a windows server, we can automatically get that username.
From a PHP page, call it login.php, i want to (through whatever method), call or redirect the user to an asp.net webpage hosted on a different server. This asp.net page will pass back a value (the username).
I know the syntax for retrieving the username from .net. But, what I dont want to do, is a URL redirect back to login.php with a querystring example of ?username=bob ... because it is directly visible to the users and has many obvious flaws.
How can I go about achieving this? Maybe using Ajax? Or some sort of .net code for example Request.LastUrlVisited.ReturnValue("bob"), which doesnt show in the URL bar?
I believe the asp.net page needs to specifically be a webpage, as a asp.net webservice can not retieve the username from windows.
Thanks,
Update
Through the comments, i've come to understand that an asp.net webservice CAN in fact get the username.. it does not need to be a webpage. So this opens up a bunch of possibilities to call the webservice service from php.