Sorry there doesn't appear to be a web thread.
Is there a way through javascript that I can get someone's user profile name for who is logged in?
Sorry there doesn't appear to be a web thread.
Is there a way through javascript that I can get someone's user profile name for who is logged in?
Here possibly for javascript?
Contributions:
Login | Let the user chose a connection string | Open/Close a Database Connection | Stick Notes | Slideable Controls | Circular Progressbar | Rounded Button | Random between 2 solutions | Custom Monthcalendar | Country Flags | XNA Control in Win-Form App | Textfile to Datatable | Syntax Highlighter
Game Contributions:
Slots | Tic-Tac-Toe | Pong | Bouncy Ball | Simon | Tron - Lightcycles | Connect4 | Hangman | Pure VB 2d Tile Based Map Engine | Plinko
XNA in Vb.Net Tutorials:
Getting Started | Setting up XNA Graphics | Displaying XNA Graphics
Links:
LegalShield | AUP
Moved the thread to the HTML and JS forum.
Joacim Andersson
Microsoft MVP, MCSD, MCSE, Sun Certified Java Programmer
If anyone's answer has helped you, please show your appreciation by rating that answer.
I'd rather run ScriptBrix...
Joacim's view on stuff.
The only situation I know of in which a web application can get the user account name is when it is provided to the server if using Internet Explorer and LDAP authentication.
And if I meet that criteria?
Then it's sent to the web server as an HTTP header:
You can actually get it using JavaScript, but only in IE with ActiveX. See the top reply here.PHP Code:$_SERVER['AUTH_USER']
Also, Mozilla apparently supports this style of authentication, but it needs to be configured manually.