473,383 Members | 1,829 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,383 software developers and data experts.

logon_user blank in front page web only

I have 2 webs under my default web running win2003
1. A front-page intranet
2. A asp (not .net) web is fine

Both allow anonomous access. My front page web always gets a BLANK
Request.ServerVariables("Logon_User"). The asp web gets the logon_user
OK. Both webs have a global.asa that has

Sub Session_Onstart()
session("logon") = Request.ServerVariables("Logon_User")
....
....
End sub

If I change the front-page web properties to NOT allow anonomous
access, I get the "Logon_user" OK when it executes in global.asa, but
in my front page web, I also submit forms to an email address. When
the front page web is changed to not allow anonomous access, the user
is presented with a logon box after pressing the submit button.

Any suggestions? The logon box is not acceptable.

Jan 12 '07 #1
2 3323

"lmlaster" <lm******@yahoo.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have 2 webs under my default web running win2003
1. A front-page intranet
2. A asp (not .net) web is fine

Both allow anonomous access. My front page web always gets a BLANK
Request.ServerVariables("Logon_User"). The asp web gets the logon_user
OK. Both webs have a global.asa that has

Sub Session_Onstart()
session("logon") = Request.ServerVariables("Logon_User")
...
...
End sub

If I change the front-page web properties to NOT allow anonomous
access, I get the "Logon_user" OK when it executes in global.asa, but
in my front page web, I also submit forms to an email address. When
the front page web is changed to not allow anonomous access, the user
is presented with a logon box after pressing the submit button.

Any suggestions? The logon box is not acceptable.
Your ASP web is pointing at files to which the anonymous user has not been
granted access. Hence the client is authenticating (IE does this
automatically for sites it considers to be in the intranet zone). Which is
why Logon_User has a value.

Your front page site is pointing at files that the anonymous user does have
access to therefore it needs not authenticate the connection. The
Logon_User is empty.

What value were you expecting to have in Logon_User whilst an anonymous user
on the internet accessed the site?

If this is an intranet application then turn off anonymous access and ensure
the users have the URL to the frontpage site added to their intranet zone
sites list in IE.

Jan 12 '07 #2
I have done more testing. in the front page web, I am fine surfing around
just fine and I have my domainname\userid from the system. I only get the
iis login prompt page when my web page attempts to SUBMIT a form. The form
is sending an email. When I get the log on prompt, if I put in a normal
user, the log on is rejected and I am sent back to re-try the log in. If I
put in an administrators login/password, the form is submitted successfully -
sending the email

"Anthony Jones" wrote:
>
"lmlaster" <lm******@yahoo.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have 2 webs under my default web running win2003
1. A front-page intranet
2. A asp (not .net) web is fine

Both allow anonomous access. My front page web always gets a BLANK
Request.ServerVariables("Logon_User"). The asp web gets the logon_user
OK. Both webs have a global.asa that has

Sub Session_Onstart()
session("logon") = Request.ServerVariables("Logon_User")
...
...
End sub

If I change the front-page web properties to NOT allow anonomous
access, I get the "Logon_user" OK when it executes in global.asa, but
in my front page web, I also submit forms to an email address. When
the front page web is changed to not allow anonomous access, the user
is presented with a logon box after pressing the submit button.

Any suggestions? The logon box is not acceptable.

Your ASP web is pointing at files to which the anonymous user has not been
granted access. Hence the client is authenticating (IE does this
automatically for sites it considers to be in the intranet zone). Which is
why Logon_User has a value.

Your front page site is pointing at files that the anonymous user does have
access to therefore it needs not authenticate the connection. The
Logon_User is empty.

What value were you expecting to have in Logon_User whilst an anonymous user
on the internet accessed the site?

If this is an intranet application then turn off anonymous access and ensure
the users have the URL to the frontpage site added to their intranet zone
sites list in IE.

Mar 9 '07 #3

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

Similar topics

3
by: JZ | last post by:
I am using Webware installed on Windows2000 server and I found I could not find all server variable like PHP could. E.g. Windows2000 server has specific variable LOGON_USER which is set for every...
3
by: Maria | last post by:
I'm trying to get the NT login id of a user on a web page without making the user type it into a login box. I'm using the LOGON_USER server variable. The problem is, if the web page allows...
0
by: David Chase | last post by:
I am trying to retrieve the LOGON_USER and it comes up blank. Below is my code: struser = Request.ServerVariables("LOGON_USER") Can anyone help? I need to validate internal people on out...
1
by: Chandra | last post by:
Hello, We use Vignette V5.6 to display our site. In our CMA site, we have a page which has FRAMESET and in one of the frames we call a ASP page. There seems to be some problem that the frame shows...
3
by: Helmi | last post by:
hi, i'm new to asp.net and here's what i'm trying to do: i used Response.Write(Request.ServerVariables("LOGON_USER")) to get the username of user who logged on to the domain, there's no error but...
5
by: T. | last post by:
Hello, I'm trying to pull the logon user's name using Request.ServerVariables("LOGON_USER")...which is returning nothing...so I need help in determining why it's returning nothing, or I need the...
9
by: Patrick Olurotimi Ige | last post by:
On PageLoad i did -: name.ID = Request.ServerVariables; on asp.net page i have <asp:textbox runat="server" ID="name"/> But when i load my page the textbox is blank Any ideas? *** Sent via...
1
by: dmjames | last post by:
For one of our machines, Request.ServerVariables("LOGON_USER") is returning the wrong value. Person A is logged into the machine (I watched him log in), but when he retrieves an aspx page...
1
by: Ryan | last post by:
I am trying to figure out why I am trying to use the result of Request.ServerVariables("LOGON_USER") in a query in my aspx application. I want to use the server variable. When I check the...
1
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
isladogs
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...
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: 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.