Solved

Accessing REMOTE_USER from JavaScript

Posted on 2002-05-16
2
1,075 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
Comment Utility

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
Comment Utility
Thanks :-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now