Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running.
Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany 11 2054
Helmut Jarausch said:
Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running.
Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
If you mean the system user id, as in their Windows logon, can't be done
with JavaScript.
--
Anthony Levensalor an*****@mypetprogrammer.com
My Pet Programmer said the following on 12/27/2007 7:27 AM:
Helmut Jarausch said:
>Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running. Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
If you mean the system user id, as in their Windows logon, can't be done
with JavaScript.
var userID = prompt('What is your user ID?');
<g>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb said:
>
var userID = prompt('What is your user ID?');
Ooh, you got me again. I hate it when that happens. :)
~A!
--
Anthony Levensalor an*****@mypetprogrammer.com
Randy Webb wrote:
My Pet Programmer said the following on 12/27/2007 7:27 AM:
>Helmut Jarausch said:
>>Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running. Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
If you mean the system user id, as in their Windows logon, can't be done with JavaScript.
var userID = prompt('What is your user ID?');
You're joking, aren't you?
Then I need to ask for a password, as well. And for that
I need an ssl connection and I have to keep track of user/password
combinations. Not the solution I was after.
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Helmut Jarausch said the following on 12/27/2007 9:56 AM:
Randy Webb wrote:
>My Pet Programmer said the following on 12/27/2007 7:27 AM:
>>Helmut Jarausch said: Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running. Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany If you mean the system user id, as in their Windows logon, can't be done with JavaScript. var userID = prompt('What is your user ID?');
You're joking, aren't you?
Not near as much as you want me to be.
Then I need to ask for a password, as well.
Why? You didn't want a password, you wanted the user ID.
And for that I need an ssl connection and I have to keep track of
user/password combinations. Not the solution I was after.
What is the user ID going to do for you? And, the username and password
to my desktop won't do anybody any good unless you have access to my
computer. And, that is provided that I even have a username and/or password.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Helmut Jarausch said:
Randy Webb wrote:
>My Pet Programmer said the following on 12/27/2007 7:27 AM:
>>Helmut Jarausch said: Sorry, but I'm a complete newbee!
I need find out under which userid the browser is running. Is this possible with JavaScript?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany If you mean the system user id, as in their Windows logon, can't be done with JavaScript. var userID = prompt('What is your user ID?');
You're joking, aren't you?
Then I need to ask for a password, as well. And for that
I need an ssl connection and I have to keep track of user/password
combinations. Not the solution I was after.
Helmut.
You could help us help you by extrapolating on your need a bit.
Precisely what username and password are you looking for? Is it system
level, on your site, or something I haven't listed?
~A!
--
Anthony Levensalor an*****@mypetprogrammer.com
if you mean the ID of the profile in some dynamic webApplication
(login or nickname) that customizes the output html for each users
(like "Hello Tom, click here to check your account") then there are
basically 2 ways to do it:
1) you can assign the value representing the user while generating the
server response the server-side. Like:
var userId=<%=user.getId() %>;
(that's java jsp the ugly way).
This way, the user's browser will get the code with, say:
var userId=124;
and later on you can use that variable for whatever you please.
2) the never-used-but-theoretically-possible-solution: you can by some
weird way get the user's IP or session ID using javaScript, and query
the server (over ajax, HttpRequest object or something like that) for
the profile corresponding to that data. But no one does it this way,
so I'd suggest (1).
...provided you *do* need some server-side appliaction profile and not
something entirely different
Randy Webb wrote:
Helmut Jarausch said the following on 12/27/2007 9:56 AM:
>Randy Webb wrote:
>>My Pet Programmer said the following on 12/27/2007 7:27 AM: Helmut Jarausch said: Sorry, but I'm a complete newbee! > I need find out under which userid the browser is running. Is this possible with JavaScript? > Many thanks for a hint, > Helmut Jarausch > Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany If you mean the system user id, as in their Windows logon, can't be done with JavaScript.
var userID = prompt('What is your user ID?');
You're joking, aren't you?
Not near as much as you want me to be.
>Then I need to ask for a password, as well.
Why? You didn't want a password, you wanted the user ID.
>And for that I need an ssl connection and I have to keep track of user/password combinations. Not the solution I was after.
What is the user ID going to do for you? And, the username and password
to my desktop won't do anybody any good unless you have access to my
computer. And, that is provided that I even have a username and/or
password.
I need authorization for access to something like a database in a strictly
local network. If I could get access to the user's login password (we are
using Linux exclusively), I can be sure that the user's id has been checked
by the system when that user has logged into the system. So, I don't need
to keep track of an additional (user,password) file, secure connection,
means to change a password, initial passwords, lost passwords and so on.
Many thanks for your help,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Helmut Jarausch wrote:
Randy Webb wrote:
>Helmut Jarausch said the following on 12/27/2007 9:56 AM:
>>Randy Webb wrote: My Pet Programmer said the following on 12/27/2007 7:27 AM: Helmut Jarausch said: >Sorry, but I'm a complete newbee! >> >I need find out under which userid the browser is running. >Is this possible with JavaScript? >> >Many thanks for a hint, >> >Helmut Jarausch >> >Lehrstuhl fuer Numerische Mathematik >RWTH - Aachen University >D 52056 Aachen, Germany If you mean the system user id, as in their Windows logon, can't be done with JavaScript. >
var userID = prompt('What is your user ID?');
You're joking, aren't you?
Not near as much as you want me to be.
>>Then I need to ask for a password, as well.
Why? You didn't want a password, you wanted the user ID.
>>And for that I need an ssl connection and I have to keep track of user/password combinations. Not the solution I was after.
What is the user ID going to do for you? And, the username and password to my desktop won't do anybody any good unless you have access to my computer. And, that is provided that I even have a username and/or password.
I need authorization for access to something like a database in a strictly
local network. If I could get access to the user's login password (we are
using Linux exclusively), I can be sure that the user's id has been checked
by the system when that user has logged into the system. So, I don't need
to keep track of an additional (user,password) file, secure connection,
means to change a password, initial passwords, lost passwords and so on.
Well if they have logged in via samba, you should be able to pick up
their local IP/userid match from samba log files..assuming a Linux
server. But you need server side scripting for that, assuming the
browser is connecting to the same server for webbery as for file sharing.
I simply set up a server side script that make them login again using
the same Id/password.
Many thanks for your help,
Helmut.
Helmut Jarausch said:
[snip]
I need authorization for access to something like a database in a strictly
local network. If I could get access to the user's login password (we are
using Linux exclusively), I can be sure that the user's id has been checked
by the system when that user has logged into the system. So, I don't need
to keep track of an additional (user,password) file, secure connection,
means to change a password, initial passwords, lost passwords and so on.
You're definitely looking to go server side for that, not much help
JavaScript is going to offer.
Try comp.lang.php
~A!
--
Anthony Levensalor an*****@mypetprogrammer.com
On Dec 28, 3:05*am, Helmut Jarausch <jarau...@skynet.bewrote:
Randy Webb wrote:
Helmut Jarausch said the following on 12/27/2007 9:56 AM:
Randy Webb wrote: My Pet Programmer said the following on 12/27/2007 7:27 AM: Helmut Jarausch said: Sorry, but I'm a complete newbee!
>>>I need find out under which userid the browser is running. Is this possible with JavaScript?
>>>Many thanks for a hint,
>>>Helmut Jarausch
>>>Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany If you mean the system user id, as in their Windows logon, can't be done with JavaScript.
>var userID = prompt('What is your user ID?');
You're joking, aren't you?
Not near as much as you want me to be.
Then I need to ask for a password, as well.
Why? You didn't want a password, you wanted the user ID.
And for that I need an ssl connection and I have to keep track of
user/password combinations. Not the solution I was after.
What is the user ID going to do for you? And, the username and password
to my desktop won't do anybody any good unless you have access to my
computer. And, that is provided that I even have a username and/or
password.
I need authorization for access to something like a database in a strictly
local network. If I could get access to the user's login password (we are
using Linux exclusively), I can be sure that the user's id has been checked
by the system when that user has logged into the system.
No, you can't. All that will tell you is that the user has a valid
local user ID and may not even have a password. You need to control
access at a network level, most likely using LDAP, you don't care
about local access to the PC.
So, I don't need
to keep track of an additional (user,password) file, secure connection,
means to change a password, initial passwords, lost passwords and so on.
Your application doesn't need to track passwords or even user user
IDs, but it must track sessions and integrate with some form of login/
password system. You could put access privileges in the LDAP server
too, but this is completely the wrong place to be discussing that,
they are all server-side technologies, the client just provides a
mechanism for user input.
--
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Phillip Wu |
last post by:
I have a javascript program that lives in the secure part of a web
site.
In order to get access to this java program the user needs to log in
providing a userid and password. I understand that...
|
by: Earl Teigrob |
last post by:
I have PW/UserID info as follows and would like to use xpath to find if a
userid and pw exists within the xml file. What Xpath query statement do I
need and what query command do I need?
<users>...
|
by: Luke Dalessandro |
last post by:
I am trying to develop a quick Shopping cart for ASP.NET 2.0. I have added a
CartItems table to the AspNetDB access database, that contaings CartItems
keyed off of the aspney_Users.UserId key (the...
|
by: Trint Smith |
last post by:
I did have UserID as 'Dim UserID As String'. Ok, when I made it 'Public
UserID As String', in the Public Area of one program and took out all
the 'local' declairations of it, even in the other...
|
by: david.kuczek |
last post by:
I got the following error in a javascript I wrote. The script works
fine, but why is the error being displayed???
##### Here comes the little script:
function...
|
by: marcwentink |
last post by:
Somewhere in the code Authorization is set like:
' user id from a login form
......
......
FormsAuthentication.SetAuthCookie(userid, False)
Is there a way to get this information, the userid...
|
by: chaitu |
last post by:
Hi,
I have an issue. When a developer tries to connect using an USERID and
a ped it gives
SQL30082N Attempt to establish connection failed with security reason
"19" ("USERID DISABLED or...
|
by: Jim |
last post by:
Using either EW or VSE2008, I want to have a GridView that will:
- Insert the logged in user's UserId from either the User table or the
membership table when the user inserts a record.
- When the...
|
by: sjohnson1984 |
last post by:
Hello all,
I have a form which is generated using a database query - the recordset is filled with agent details, login time and the like, and there are as many rows in the table as records in the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |