473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Currently logged on user

Hello,

I am currently maintaing an old ASP 2.0 application and would like to know
the command to retain the currently logged on user (i.e. WINDOWS login). The
equivalent command in ASP.NET would be User_login =
HttpContext.Current.User.Identity.Name()

Thanks in advance.
Jun 27 '08 #1
4 1377
There is a classic ASP group: mcirosoft.public.inetserver.asp.general.

The logged in user in ASP is done off the Request object and is in the
server variables. I do not have the exact syntax to share.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Tapiwa" <ts*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hello,

I am currently maintaing an old ASP 2.0 application and would like to know
the command to retain the currently logged on user (i.e. WINDOWS login).
The equivalent command in ASP.NET would be User_login =
HttpContext.Current.User.Identity.Name()

Thanks in advance.

Jun 27 '08 #2
I think it is System.Environment.User (Don't remember exactly, but you
should be able to figure out.)

--
Madhur
"Tapiwa" <ts*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hello,

I am currently maintaing an old ASP 2.0 application and would like to know
the command to retain the currently logged on user (i.e. WINDOWS login).
The equivalent command in ASP.NET would be User_login =
HttpContext.Current.User.Identity.Name()

Thanks in advance.
Jun 27 '08 #3
User.Identity.Name works the same in 2.0
David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Tapiwa" <ts*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hello,

I am currently maintaing an old ASP 2.0 application and would like to know
the command to retain the currently logged on user (i.e. WINDOWS login).
The equivalent command in ASP.NET would be User_login =
HttpContext.Current.User.Identity.Name()

Thanks in advance.

Jun 27 '08 #4
Hi there,

Have a look at
Request.ServerVariables("LOGON_USER")
Request.ServerVariables("AUTH_USER")

HTH
--
Milosz
"Tapiwa" wrote:
Hello,

I am currently maintaing an old ASP 2.0 application and would like to know
the command to retain the currently logged on user (i.e. WINDOWS login). The
equivalent command in ASP.NET would be User_login =
HttpContext.Current.User.Identity.Name()

Thanks in advance.
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marcin Zmyslowski | last post by:
Hello all! I want to create a page in ASP language which gives me information about currently logged users. I thought to do it by this way: when somebody will log in to page, there will be a...
1
by: anonymous | last post by:
Hi all, I've been searching the way to achieve the following task. But no luck so far. I have a web site(main site), which requires authentication. This authentication is set at Windows...
1
by: sushi | last post by:
Hello, I am running a ASP.Net application. It runs by defaul in the context of ASPNET user. I want to dynamically impersonate it so as to run in the context of currently logged in user. I know it...
2
by: SStory | last post by:
I have a service which has no U/I, that I use to ensure a certain tray application is running. I would like for the service which runs under "Local System", to create the process as a normal app...
1
by: eswanson | last post by:
How do you get the currently logged in user from a regular c sharp class? I have a common utility class in which I have some static functions that called from multiple places. In one of the...
7
by: John | last post by:
Hi We can get the current logged in user's name but is it also possible to get the default email form outlook of the currently logged-in user as well? The reason for this is that I need to email...
6
by: MuZZy | last post by:
Hi, I am looking to find a way to get currently logged in user's object GUID without querying ActiveDirectory. For example, when i log in to my laptop from home, I'm not on the office network so...
8
by: simonlpwaters | last post by:
I need to obtain the username of the currently logged in user on a machine. However, the program that needs to do this will be running under different credentials to the logged in user, so using...
2
by: gihope | last post by:
Hi, can anyone advise me how I can access the UserName of a currently logged in user without using the LoginName control. For instance I want to search tables I have created in my database that I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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...
0
BarryA
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...
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.