|
-
May 30th, 2001, 03:50 PM
#1
Thread Starter
Hyperactive Member
Pulling Windows usernames
I have a section of the company intranet where employees can manage their projects for the year. There are two pages: one to add the project (if it is new) and an edit page ( for existing projects). There is a textbox that has the owner of the project. I want only the project owner of a specific project to be able to get to the edit page. Is there a way to grab the windows username(all of this hidden, maybe vbscript or API call?) to verify that the current user has permission to edit that project? If you need more information, let me know. Thanks in advance.
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
-
May 30th, 2001, 04:17 PM
#2
Lively Member
if u r using ASP i have a way to get the logon username
place this code in the ASP to get the username
request.servervariables("LOGON_USER")
Also while creating vir dir please remove anonymous access.
Thanks
Sonia
-
May 30th, 2001, 04:20 PM
#3
Thread Starter
Hyperactive Member
THANX!
-vbuser1976 
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|