Jump to content

get username after login to server


RIRedinPA

Recommended Posts

This is kind of out of my realm so excuse any comments/questions that don't make sense. I am working on a internal site that will sit on a server which requires the user to use their Active Directory username and password to access. Once they authenticate the server will then load my page. Is there a way for me to get the username that they used to log in - I'll be using it to pull up their data stored in a MySQL db and configure the page for them. Thanks.

Link to comment
https://forums.phpfreaks.com/topic/219109-get-username-after-login-to-server/
Share on other sites

I assume you're using some sort of form to log them in, right? Is there a reason you couldn't just populate a $_SESSION var with the contents of the username field when they submit the form, or does it use a different method to authenticate?

No, that's the problem, the login window is being generated by the browser I assume by a request from the server? I thought of putting a page up with a form and storing the username through a session but then it reverses my question, how do I pass the username/password back to apache to authenticate - the site is going to be behind a https wall. I hope that makes sense, like I said, not my area of competence. You can't get on the server until you authenticate. So either way, I need to talk to apache.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.