01hanstu Posted December 7, 2011 Share Posted December 7, 2011 Hi, I used to use the php session to get the username of the user that was logged on and use that variable on our intranet. Recently we are having to redevelop the site, and we can no longer use this variable. Is there another way of getting the username of the user who is logged onto the computer? Thanks in Advance, Stuart Link to comment https://forums.phpfreaks.com/topic/252670-phpusername/ Share on other sites More sharing options...
freelance84 Posted December 7, 2011 Share Posted December 7, 2011 cookies Link to comment https://forums.phpfreaks.com/topic/252670-phpusername/#findComment-1295330 Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2011 Share Posted December 7, 2011 Wait a minute. Are you talking about getting the username that is logged into the computer's operating system? If so, then no, php can't do that. Link to comment https://forums.phpfreaks.com/topic/252670-phpusername/#findComment-1295332 Share on other sites More sharing options...
01hanstu Posted December 7, 2011 Author Share Posted December 7, 2011 Hi, Thanks for your replies. I have been able to get the username via the $_SERVER['AUTH_USER'] and was wondering if there was an other way, as users will no longer be authenticating via AD now. Cheers, Stuart Link to comment https://forums.phpfreaks.com/topic/252670-phpusername/#findComment-1295407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.