473,320 Members | 2,133 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,320 software developers and data experts.

perpetual client-side - server-side dilema

Hello:
I wrote a vb6 "client-side" ActiveX Component that will extract the user's
network login.
Now I want to be able to do some server-side work with this info, and it
would be great if I could put the user's network login into a session
variable but serverside-code is executed first ....

My objective is for, each time (or the first time) our intranet users access
the intranet's web page, it call the activeX which pull their user name
which them would call SQL and displays custom information.

Does anyone have any ideas ? would an include file work ? or can I in vb6
re-write my ocx so that it places the username directly in a server session
object (nah! that wont work because the ocx is on the client...) help
Thanks
Terry
Jul 21 '05 #1
4 1700
Support wrote:
Hello:
I wrote a vb6 "client-side" ActiveX Component that will extract the
user's network login.
Now I want to be able to do some server-side work with this info, and
it would be great if I could put the user's network login into a
session variable but serverside-code is executed first ....

My objective is for, each time (or the first time) our intranet users
access the intranet's web page, it call the activeX which pull their
user name which them would call SQL and displays custom information.

Does anyone have any ideas ? would an include file work ? or can I in
vb6 re-write my ocx so that it places the username directly in a
server session object (nah! that wont work because the ocx is on the
client...) help Thanks
Terry


Why are you doing this? Why don't you set authentication to Windows and
disable Anonymous? The LOGON_USER servervariable will then contain the
user's network login (I'm assuming this is an intranet application)

Given that you need to use this client-side ocx, you can use the
XMLHTTPRequest object to pass data to a server-side asp page which can do
whatever you like, including putting it into a session variable.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 21 '05 #2
Yes - thanks that may work. Will the user be required to "login" on the web
server ? or will this be totally transparant?
They access the intranet sporadically and we do not want them to login each
and every time...
Thanks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Support wrote:
Hello:
I wrote a vb6 "client-side" ActiveX Component that will extract the
user's network login.
Now I want to be able to do some server-side work with this info, and
it would be great if I could put the user's network login into a
session variable but serverside-code is executed first ....

My objective is for, each time (or the first time) our intranet users
access the intranet's web page, it call the activeX which pull their
user name which them would call SQL and displays custom information.

Does anyone have any ideas ? would an include file work ? or can I in
vb6 re-write my ocx so that it places the username directly in a
server session object (nah! that wont work because the ocx is on the
client...) help Thanks
Terry


Why are you doing this? Why don't you set authentication to Windows and
disable Anonymous? The LOGON_USER servervariable will then contain the
user's network login (I'm assuming this is an intranet application)

Given that you need to use this client-side ocx, you can use the
XMLHTTPRequest object to pass data to a server-side asp page which can do
whatever you like, including putting it into a session variable.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 21 '05 #3
It's totally transparent. The web server authenticates the user using the
Windows credentials.

Bob Barrows

Support wrote:
Yes - thanks that may work. Will the user be required to "login" on
the web server ? or will this be totally transparant?
They access the intranet sporadically and we do not want them to
login each and every time...
Thanks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Support wrote:
Hello:
I wrote a vb6 "client-side" ActiveX Component that will extract the
user's network login.
Now I want to be able to do some server-side work with this info,
and it would be great if I could put the user's network login into a
session variable but serverside-code is executed first ....

My objective is for, each time (or the first time) our intranet
users access the intranet's web page, it call the activeX which
pull their user name which them would call SQL and displays custom
information.

Does anyone have any ideas ? would an include file work ? or can I
in vb6 re-write my ocx so that it places the username directly in a
server session object (nah! that wont work because the ocx is on the
client...) help Thanks
Terry


Why are you doing this? Why don't you set authentication to Windows
and disable Anonymous? The LOGON_USER servervariable will then
contain the user's network login (I'm assuming this is an intranet
application)

Given that you need to use this client-side ocx, you can use the
XMLHTTPRequest object to pass data to a server-side asp page which
can do whatever you like, including putting it into a session
variable.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 21 '05 #4
Thanks I tried this:
this required in ie ->tools ->Internet Options ->Security ->Local Intranet
Custom Level -> Setting User Authentication/Logon to Automatic login with
current username and password
I can then get the user name via Request.ServerVariables("AUTH_USER")
Thanks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Support wrote:
Hello:
I wrote a vb6 "client-side" ActiveX Component that will extract the
user's network login.
Now I want to be able to do some server-side work with this info, and
it would be great if I could put the user's network login into a
session variable but serverside-code is executed first ....

My objective is for, each time (or the first time) our intranet users
access the intranet's web page, it call the activeX which pull their
user name which them would call SQL and displays custom information.

Does anyone have any ideas ? would an include file work ? or can I in
vb6 re-write my ocx so that it places the username directly in a
server session object (nah! that wont work because the ocx is on the
client...) help Thanks
Terry


Why are you doing this? Why don't you set authentication to Windows and
disable Anonymous? The LOGON_USER servervariable will then contain the
user's network login (I'm assuming this is an intranet application)

Given that you need to use this client-side ocx, you can use the
XMLHTTPRequest object to pass data to a server-side asp page which can do
whatever you like, including putting it into a session variable.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 21 '05 #5

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

Similar topics

1
by: Justin Stockton | last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and I'm running into an issue importing the win32com.client module. Before installing the new version, I made sure to properly...
2
by: Rhino | last post by:
I am trying to verify that I correctly understand something I saw in the DB2 Information Center. I am running DB2 Personal Edition V8.2.1 on Windows. I came across the following in the Info...
5
by: Paul H | last post by:
How do you folks get a reliable and complete brief of what is required before development starts? I am forever going back to a client once a project has started saying "Hang on, now that I've...
11
by: pshindle | last post by:
We have several machines currently running the DB2 V7 Run-time Client that we would like to actually be running the App Dev Client. To 'upgrade' (within the same version) this client software can...
2
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking....
11
by: Wayne | last post by:
I am a one man enterprise and have been asked by a prospective client what happens to their database regarding ongoing changes etc if I get hit by a bus. Obviously my databases are distributed...
1
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
3
by: rjha94 | last post by:
Hi I just installed the runtime client on my windows machine. when i go inside the SQLLIB\bin folder i can see db2.exe. is it possible to use this db2 bundled with runtime client for command line...
4
MMcCarthy
by: MMcCarthy | last post by:
http://bytes.com/images/howtos/projectscope_blocks.jpgAs a freelance IT consultant for over 10 years, I’ve come to appreciate well defined project scopes. A project scope is a common understanding...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.