472,354 Members | 1,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 3269

"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...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.