Solved

Accessing REMOTE_USER from JavaScript

Posted on 2002-05-16
2
1,112 Views
Last Modified: 2012-05-04
Does JavaScript have access to the REMOTE_USER information?  I need to know the user login inside of a JavaScript program and was wondering if there is an object that has it or whether I have to have a server side script pass the REMOTE_USER to Javascript when the page is generated.  Thanks.
0
Comment
Question by:cmulzer
  • 2
2 Comments
 
LVL 10

Accepted Solution

by:
zvonko earned 100 total points
ID: 7014698

Beside that every window in browser could have another realm and so another user name to the server, does this CGI variable only work for browser BASIC authentication. Nowadays when whole world is using session cookies and URL session parameters is this variable empty.

Best idea is as you guessed to send the user name in a field to the browser for JavaScript use.

Regards,
zvonko

0
 
LVL 10

Expert Comment

by:zvonko
ID: 7305825
Thanks :-)
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question